Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to duplicate this with SPT?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00492451
Message ID:
00492455
Views:
13
>SELECT * FROM mastcoil INTO CURSOR tmprfil4 WHERE &pcstring UNION SELECT * FROM masthist WHERE &pcstring

>SELECT DISTINCT * FROM tmprfil4 INTO CURSOR tmprfile GROUP BY fcprocno

As far as I know, doing a UNION (without the ALL keyword) will automatically get rid of duplicates, so you don't even need to do the second SELECT DISTINCT. So the original SELECT should do the whole thing for you.

--Brad
Previous
Reply
Map
View

Click here to load this message in the networking platform