Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting records where agration of 2 fields is not equa
Message
De
14/05/2001 11:06:58
 
 
À
11/05/2001 13:43:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00506288
Message ID:
00506827
Vues:
17
Thanks for replies. Missed that when reading help file.

>>I figured out how to use a left outer join to get values in table 1 and any matching records in table 2. there are 4 fields.
>>I know how to sum fields 3 and 4 by field 1 (ie select 1 sum(3) as s1 sum(4) as s2 form a order by 1 group by 1 into b).
>>
>>What I do not see how to do in this step is how to select only records where sum(3) <> sum(4) in the above select.
>> I can do it in a subsequent select.
>>
>>Can it be done?
>
>You should be able to do it with a HAVING clause, e.g.,
>
>... GROUP BY 1 HAVING sum(3)<>sum(4)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform