Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
0 or More Children recs. but need SQL for NULL or first 1
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
0 or More Children recs. but need SQL for NULL or first 1
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01205365
Message ID:
01205365
Views:
70
Hi all

I have parent-child tables. The child table can have 0 or more records for each parent record.

I need to write an SQL where in each row I get a parent record and an either a NULL fields for the child table or only these 1st child record (no multiple occurrence of the parent record due to multiple child recs.), for each and every parent record.

Please let me know how I can go about this.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform