Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to aggregate by day from TimeStamp info

$
0
0

So I am working on a project to help myself learn more / get experience with SSIS.  I have created a scenario where I am tracking a fictional bank's data.  I started with a basic schema that tracks account transactions.  This is working just fine, but my problem is I'd like to create a schema with a higher level of granularity (account snapshots by day).

Since there can be multiple transactions each day, I need to sum the changes in all transactions that took place on a given day.  Each transaction is created with a corresponding timestamp.  How in SSIS can I essentially say "SUM transactionAmmount FROM mytable GroupBy day" given timestamp information?

I did it, (essentially I converted it to a string and I pulled out the time data) but I have to believe there is a better way.  


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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