Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need SQL to find LATEST child record
Message
De
15/04/2003 11:58:02
 
 
À
15/04/2003 11:35:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00777700
Message ID:
00777829
Vues:
16
Cetin,
Sorry, still not getting what I need.

Let me rephrase the problem again:

Parent table contains a surrogate key field (cid) which is primary key.
Parent table is 1 rec per inmate.

Child table contains multiple recs per parent. This table also has a surrogate key (cid) which is probably immaterial to this problem.
Child recs have a pointer to the parent table's surrogate key (child.cinmates_id points to parent.cid).

I want:
Select all from parent where child's LATEST (via child's txndatetm) has a value of "OPEN" in child's status field.

Thanks,
John
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform