Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Problem in 3 files
Message
De
23/07/1997 09:22:41
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
 
 
À
23/07/1997 09:03:51
Monte Murdock
Universal American Mortgage Company
Clearwater, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00041299
Message ID:
00041307
Vues:
55
>>I have 3 files, 1 parent & 2 child
>>
>>When I give statment like :-
>>
>>sele parentfield, child1, child2 from parent, child1, child2 where parent.code=child1.code and parent.code=child2.code
>>
>>It shows me double records i.e.
>>
>>if a parent record is having 2 child records in each file, it is showing me 4 records, instead of 2. (values are getting repeated).
>>
>>Any Ideas/suggestions ??
>
>Try adding a "GROUP BY parent.code" clause to your SELECT statement.

I added this but now it is only showing me one record, it should show 2 actually..
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform