Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicate results from a unioned Select
Message
 
To
01/09/2000 13:48:14
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00411880
Message ID:
00411940
Views:
14
Hi John,

I'm guessing that your sum is different for each row. Union will only eliminate rows that are completely identical.

>When I issue a SQL-Select like the following:
>
>select Field1, sum(Field2) from Table;
> where Field3 ! = "XXX";
>union select Field1, sum(Field2) from Table2;
> where Field3 ! = "XXX";
> group by Field1
>
>
>The result table will consistantly contain one record for each Field1 value except for one duplicate.
>
>Does anyone know how to get no duplicates?
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Reply
Map
View

Click here to load this message in the networking platform