Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to include records from 2 tables in Report

Status
Not open for further replies.

Asvni

Technical User
Sep 30, 2001
15
0
0
MY
Hi,

I have developed 2 tables with Records to be added in Report using Report Builder. But how do I do that?
The layout will be like this:

Table 1 contains: Mon1 Mon2...Mon12
Year 1 Original xxx xxx xxx
Inforce1 xxx xxx xxx
Inforce2 xxx xxx xxx

Year 2 Original xxx xxx xxx
Inforce1 xxx xxx xxx
Inforce2 xxx xxx xxx


Table 2 contains Mon1 Mon2...Mon12
Year 1 Ratio 1 xxx xxx xxx
Ratio 2 xxx xxx xxx

Year 2 Ratio 1 xxx xxx xxx
Ratio 2 xxx xxx xxx



Now, I have to incorporate the two tables as below:

Mon1 Mon2...Mon12
Year 1 Original xxx xxx xxx
Inforce1 xxx xxx xxx
Inforce2 xxx xxx xxx
Ratio 1 xxx xxx xxx
Ratio 2 xxx xxx xxx

Year 2 Original xxx xxx xxx
Inforce1 xxx xxx xxx
Inforce2 xxx xxx xxx
Ratio 1 xxx xxx xxx
Ratio 2 xxx xxx xxx

and it continues up to Year 5

Can someone please help me on this?Thanking in advance.
 
Have you tried

SELECT year,title,mon1,mon2....
FROM table_1
UNION
SELECT year,title,mon1,mon2
FROM table_2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top