DarkConsultant
Programmer
Hi All,
I have a table called usergroup which contains group and subgroup names such ..
A group is a subgroup if it has a SubGroupOf value (Groups are NULL).
Another table is called members ...
So if I am selecting members.UIN=1 I want to return the name of the group (Prospects) and also the name of the parent group (Contacts).
How do I combine this into a single query returning both pieces of data in a single row?
Many thanks
DarkConsultant
Live long and prosper \\//
I have a table called usergroup which contains group and subgroup names such ..
Code:
UIN Name SubGroupOf
1 Contacts NULL
2 Prospects 1
3 Dead 1
Another table is called members ...
Code:
UIN GroupUIN MemberUIN
1 2 24
2 1 32
How do I combine this into a single query returning both pieces of data in a single row?
Many thanks
DarkConsultant
Live long and prosper \\//