Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to count records in a child table ?
Message
De
11/03/2004 16:23:54
 
 
À
10/03/2004 08:20:23
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00884570
Message ID:
00885377
Vues:
16
>Hi Stephane
>
>>Hello,
>>
>>I have 2 free tables. I establish a relation between them.
>>But how to count records in the child table (result of the relation) ?
>>
>
>I think it is better to ...
>
>
>LOCAL ARRAY laCount[1]
>luMyCod = tableParent.myCod
>SELECT COUNT(*) ;
>  FROM TableChild ;
>  WHERE tableChild.myCod = m.luMyCod INTO ARRAY laCount
>?laCount[1]
>
>This way the record pointer will not be moved in any workarea.


Thanks for your answer Mike.
You're right, it's a good solution.

Thanks to you Mike, Erick and Yuri for your help.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform