As the title states, I have a table that has multiple columns. A few of the columns I want to just export what is in each (which I can do), but I want to know if there is a way to use the sql functions such as SUM and COUNT on a column and then export the results. How would I go about doing that?
As the title states, I have a table that has multiple columns. A few of the columns I want to just export what is in each (which I can do), but I want to know if there is a way to use the sql functions such as SUM and COUNT on a column and then export the results. How would I go about doing that?
Thanks for any help!
you can either use sql statement with GROUP BY and SUM,COUNT as your source or you can bring data from table and do aggregation during export using ssis packages. I would prefer first method as its best to do it before export itself if you're sure you want only aggregated data.
------------------------------------------------------------------------------------------------------ SQL Server MVP http://visakhm.blogspot.com/