jeffbarbacpa
asked on
How to join flat and deep tables in MS SQL Reporting Services
I have one table of loans and another table of transactions that relate to those loans. I am trying to figure out how to produce a report that shows each loan in the loan table, and corresponding transaction totals.
Loan table: LOAN_NUM, BORROWER_NAME, FUND_DATE
Transaction Table: LOAN_NUM, TRANS_TYPE, AMOUNT
Desired output:
LOAN_NUM, BORROWER_NAME, FUND_DATE, SUM OF AMOUNT where trans_type = D, SUM OF AMOUNT where transtype = P
In access, I would create a couple queries and it would be done. I can't figure out an easy way to do in MS Reporting Services. Help!
Loan table: LOAN_NUM, BORROWER_NAME, FUND_DATE
Transaction Table: LOAN_NUM, TRANS_TYPE, AMOUNT
Desired output:
LOAN_NUM, BORROWER_NAME, FUND_DATE, SUM OF AMOUNT where trans_type = D, SUM OF AMOUNT where transtype = P
In access, I would create a couple queries and it would be done. I can't figure out an easy way to do in MS Reporting Services. Help!
ASKER
what about the sum of 'P' transactions though? How do I get both 'D' and 'P' in the same query?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
Didn't test it so it might need some tweaking.