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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql view 1

Status
Not open for further replies.

ianholmes

Programmer
Mar 24, 2001
61
GB
I am a cobol programmer who is new to SQL.
I need to create a VIEW to to merge the contents of 2 tables, whose fields are the same.
eg Table 1 & 2 both have : Key, Date, & Amount.
Table 1 has data up to yesterday.
Table 2 has today's data.
When I use the VIEW, I want to be able to access all of Table 1 & table 2's data as if they were in the same table.
This is probably dead easy, but I don't know how.
Many Tahanks in anticipation.
Ian
 
Thanks magicrat, but my development environment doesn't allow UNIONs within a VIEW.
I know how to use a UNION, but, in this instance, I must
write a VIEW to achieve the merge.
Can you suggest anything else ?
Best Wishes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top