SimonTheSponge
Programmer
Having a bit of mind going blank day
I have a parent table
Member
Membership_no (char(10)) PK
First_name (char(30))
Surname (char(30))
and a child table
Role_no (char(10)) PK
Membership_no (char(10)) FK
...and various other fields
I want a query to return the membership_no, first_name, surname and the number of roles they have for the member with the most roles and . This is running SQL 6.5
Cheers
I have a parent table
Member
Membership_no (char(10)) PK
First_name (char(30))
Surname (char(30))
and a child table
Role_no (char(10)) PK
Membership_no (char(10)) FK
...and various other fields
I want a query to return the membership_no, first_name, surname and the number of roles they have for the member with the most roles and . This is running SQL 6.5
Cheers