Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql Select count of Child Keys
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Sql Select count of Child Keys
Miscellaneous
Thread ID:
01461951
Message ID:
01461951
Views:
100
I have two tables, one is a child of the other.
Is there one Sql Statement that will give me a count of the child records for each Primary Key
e.g.
Parent Table
A
B
C
--------------------------------
Child Table
A XX
A VVV
A GDS
B HH
B UYU
D aaaa
-----------------------------
Result would be
A 3
B 2
C 0
D 1

Tia
Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform