Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combine and remove duplicate
Message
From
03/07/1999 11:25:19
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
02/07/1999 23:31:17
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00237126
Message ID:
00237211
Views:
17
>Hi,
> I would like to combine 2 tables (with same structure) and remove duplicate record after query. How could I do so?
>
> I try :
> SELECT DISTICNT Card_ID, Status, Date FROM
> (SELECT * FROM Table1 UNION SELECT * FROM Table2)
>
>Any Suggestion?

Actually,

SELECT * FROM Table1 UNION SELECT * FROM Table2

is enough, because UNION does Distinct by default (which wasn't what I wanted in some cases, and took me some while to find out).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform