I am writing a query to retrieve records from an Oracle repository. Its a simple select query with joins across multiple tables, and I have multiple columns to aggregate. Therefore, I am ending using Groupby on the rest of the columns.
Let's say I collect 10 columns, of which 5 are cumulative columns. so i need to group by other 5 columns. I can even achieve the same without doing Groupby and use the over (paritition by) clause for every every column of the aggregate I want to get.
I'm not sure if itβs better from stock or in general.
user747858
source share