Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Excel source - can I use aggregates in my query (sum) ?

$
0
0

I want to query an excel source with a select statement that includes an aliased result of a sum of a few columns.

eg.  
SELECT C1 as ShoeSize, F2 as OrderCount, F4 as OrderTotal, SUM(F5:F9) as ShipTotal  
FROM [Cost Info$]

...where "Cost Info$" is the sheet name

Is this doable?

Or...use an aggregate transformation and just pull in the separate cell values into the source for use in the transform?


Viewing all articles
Browse latest Browse all 11829

Trending Articles



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