I have the following SQL statement (in VFP8 SP1):
In the table Relations, the string VINCE123PR appears 13 times in field ObjectPic and 8 times in field SubjectPic.
I thought the "ALL" keyword prevented elimination of duplicates - here's what the help says
Can someone tell me (a) what's wrong and (b) how to get all 21 records?
Thanks,
Stewart
Code:
SELECT ALL ObjectPic AS Pic FROM Relations WHERE ObjectPic = [VINCE123PR] ;
UNION SELECT ALL SubjectPic AS Pic FROM Relations WHERE SubjectPic = [VINCE123PR]
I thought the "ALL" keyword prevented elimination of duplicates - here's what the help says
- however the above statement only returns 1 record.ALL prevents UNION from eliminating duplicate rows from the combined results.
Can someone tell me (a) what's wrong and (b) how to get all 21 records?
Thanks,
Stewart