General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only