I've looked at them, and no they don't do what I need.
What I have is two tables (for a school registration system). One is family/parent information: Lastname, home address, etc. Then there is a student table .Students relate to their family by family ID.
I want to get a report of all families info from the family table that includes a count of the number of children they have in the school. So, each row returned would have fields from the family table, and a column of the count of the number of records in the children table with that family ID.
The
SQL I posted above would do it if executed directly. The question is, can it be done through DBUtil ?
SELECT t1.g_name,
count(t2.g_id
) FROM groups t1,users t2
WHERE t1.g_id = t2.g_id
GROUP BY t1.g_name;