Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Help with SProc & SSRS

$
0
0

Hi experts,

I need some ideas on how to best implement a report I am working on.

There are 2 parts in this report – Client detailed Account transactions and a Summary to show a Sum of all the transactions only if the +ve and –ve dont equate to zero.

So the first page in the report will be Summary, something like below

Account nos – SUM(account1) – SUM(account 2) – SUM(Account3) ------- (Only when the SUMs are <> ‘0’)

Then when I click on an account num, it takes me to detailed transaction against that account number.

I would be using Stored procedures at the backend and SSRS to publish the data.

Should I create

1) 2 separate SProcs for detailed and Summary transactions ?

2) In the SProc to calculate the Summary, how do I just use SUM on the accounts ? I mean what will the code syntax be as my detailed transaction is in a sproc and i dont want to go through the complex logic again to just do a SUM for the summary report.

Thanks in advance.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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