Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECTing records which are NOT DISTINCT
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00095346
Message ID:
00095564
Views:
23
> Take a look at the IN clause. You may be able to formulate your query by doing
>something like this
>
>Select * from table where pkey not in ;
> (select col1, col2, col3 from table group by 2,3)
>
>This should return all records not selected in the 2nd query.

Yeah, I was going to suggest something like this, except that I was going to go with the original SELECT DISTINCT in the subquery....

Or, you could do a relation between the original table and the new table and COPY TO droppedRecs FOR EOF('newTable'). I suspect the straight SQL is better, though....
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Reply
Map
View

Click here to load this message in the networking platform