Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combine and remove duplicate
Message
From
05/07/1999 12:36:11
 
 
To
05/07/1999 11:04:49
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00237126
Message ID:
00237512
Views:
9
Maybe what he wants is more like:

SELECT Card_ID, Status, Date from table1 union select card_id, status, date from table2 into cursor temp

* that will get the unique records from both tables, but will only consider the three fields, instead of the entire record.



>>Hi,
>> I have tried to use your idea, but it doesn't return result in distinct format. Any suggestion?
>>
>>Thank you
>
>Well, then revert to your original solution or just select * distinct from the first cursor, i.e.
>
>select * from first_table ;
> union select * from second_table;
> into curs temp
>
>select * distinct from temp into curs distinct_cursor
--Todd Sherman
-Wake Up! Smell the Coffee!
Previous
Reply
Map
View

Click here to load this message in the networking platform