Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data is missing after union
Message
 
To
24/09/2007 15:45:17
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Vista
Miscellaneous
Thread ID:
01256456
Message ID:
01256458
Views:
18
>I have an SQL construct.
>
>There are 2 unions in it.
>
>From the interrogation I don't get all the data.
>
>Here's what I did. I cut the part beginning at the first union and then ran the interrogation. All the data was there.
>
>When I add the part with union then data is missing.
>
>I don't get how that could be the case. I mean I get some data and after that I add 2 unions. How can a union give me less data than I add before it?

Did you use UNION ALL or just UNION?
If you use just UNION that construction filter duplicated records.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform