Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

List all transformation/ aggregation in a query

$
0
0

I have a long query with many transformations. I need to list all aggregation and transformation done within the query.

For example

select sum(a)as product,
sum(quantity)as salesprice,
productcodefrom factSalesgroupby
productcode

As result, I need

Transformation    column------------------------------------
sum(a)            product
sum(quantity)     salespricegroupby
productcode       Regroupment

Is there a way to do it?


Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>