Connecting Tech Pros Worldwide Forums | Help | Site Map

Combine Tables Then Append

Newbie
 
Join Date: Nov 2006
Posts: 2
#1: Nov 20 '06
I want to combine 3 tables with like data then append it with a filter.

Tables: NewStarts, Complaints, Memos

Combine: Date, Address, Route, Pub, etc....

Then sort: previous 8 days, pub/freq for that day etc...

I can already do the append filter, but I cant combine and then append.
I tried a Union and did the combine.. but lack the part to append the union.

Please help me :)

NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,747
#2: Nov 20 '06

re: Combine Tables Then Append


To make this easier, do the UNION query and save it.
Now build an APPEND query using the UNION query as its source.

You can also do it with embedded subqueries.
Expand|Select|Wrap|Line Numbers
  1. SELECT subSQL.* FROM (SQL of sub query) AS subSQL
Newbie
 
Join Date: Nov 2006
Posts: 2
#3: Nov 21 '06

re: Combine Tables Then Append


I tired that. I get multiple records depending on the total amount of entries in a table. IE: table 1 has 9 lines therefore the appended union results 9 duplicate entries.
Reply