bhummel
asked on
Newbie SQL Question
Greetings,
I have created an SP which summarizes finacial statement information. I have created three temp tables(one with Revenue, one with Expenses, one with Excluded items).
I now want to: Merge these three temp tables into one so I can have one record with expenses, revenue and excluded items. The keys which are common for all temp tables are pool number, loan number and statement date.
How do I join these three tables.
Thank you for your help...
Brad
I have created an SP which summarizes finacial statement information. I have created three temp tables(one with Revenue, one with Expenses, one with Excluded items).
I now want to: Merge these three temp tables into one so I can have one record with expenses, revenue and excluded items. The keys which are common for all temp tables are pool number, loan number and statement date.
How do I join these three tables.
Thank you for your help...
Brad
I would appreciate detailed table structure.
If it has the same structure, use INNER JOIN
bhummel,
Hi,
E-mail me the database even with 2 records and I'll send you the code.
shay@hili.com
Hi,
E-mail me the database even with 2 records and I'll send you the code.
shay@hili.com
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
richtstieg,
I used your code and it combined the rows. Thanks for your help.
Brad
I used your code and it combined the rows. Thanks for your help.
Brad