Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Normalizing with SQL
Message
 
To
18/02/2005 01:19:32
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
FoxPro Dos
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00988112
Message ID:
00988276
Views:
59
>>>Don't know if it's relevant, but by default UNION deletes duplicate rows. So, if some of the 38 are dupes that might account for it.
>>
>>Al,
>>
>>Just an FYI - specifying UNION ALL (as in his original snippet) is supposed to eliminate duplicate rows from the result set.
>
>I think you meant UNION ALL is NOT supposed to eliminate dupes :) Thanks for the heads-up.


Yes, that's what I read in the help:
[UNION [ALL] SELECTCommand]
Combines the final results of one SELECT with the final results of another SELECT. By default, UNION checks the combined results and eliminates duplicate rows. Use parentheses to combine multiple UNION clauses.
ALL prevents UNION from eliminating duplicate rows from the combined results.


Hmmmm.... maybe I need some parentheses?
Randy Bosma
VFP - Because life is too short to code in something else...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform