Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need SQL to find LATEST child record
Message
From
15/04/2003 11:58:02
 
 
To
15/04/2003 11:35:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00777700
Message ID:
00777829
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform