Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
V6s5 - SQL for Parent and only the Latest Child rec
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
V6s5 - SQL for Parent and only the Latest Child rec
Divers
Thread ID:
00888750
Message ID:
00888750
Vues:
50
Hi all

I have a parent-child like the following. It is a simple representation of the actual.

---Parent
ID 5
Docno 123
Docdt 12/12/03

---Child 1
ID 456
ParentID 5
DueDt 31/01/04
Amount 75,000

---Child 2
ID 489
ParentID 5
DueDt 30/04/04
Amount 50,000


How to write the SQL to return. I don't want the older child records for the parent

ID 5
Docno 123
Docdt 12/12/03
ChildID 489
DueDt 30/04/04
Amount 50,000


Please advise.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform