Rauldinho
01-09-2008, 10:03 PM
Hi, i'm a little bit rusty with SQL since i haven't used it for a while and i have this problem. I have 2 tables, A and B, A contains information about a parent and B the information about his children. Every children has an unique ID and also the ID of his/her parent.
What i want to do is to create a query that shows me all the data from a parent and also counts the number of children that he has. I thinks this involves using JOINs, i'm trying to remember.
Hope i made myself clear, thanks for any help i may get.
What i want to do is to create a query that shows me all the data from a parent and also counts the number of children that he has. I thinks this involves using JOINs, i'm trying to remember.
Hope i made myself clear, thanks for any help i may get.