Hello all ....<br><br>I'm trying to create a query which will give me a group within a group, <br>but I'm not sure how to organise the query.<br><br>I have two reference tables, one is for medical specialities<br><br>id speciality<br>=======================================<br>1 surgeon<br>2 dentist<br>3 general practioner<br><br><br>... and the other is for level within the speciality<br><br><br>id seniority<br>=======================================<br>1 medical student<br>2 registrar<br>3 house office<br>4 senior house officer<br><br><br><br>Now both these table provide lookups for a profile of medical <br>practictioners<br><br><br>id initial surname seniority speciality<br>================================================================<br><br>1 F Smith 1 3<br>2 T Jones 3 2<br>3 R Kidd 4 3<br><br><br>Okay so far ....? .... <br><br>Right, what I'm trying to do is obtain a count of the number seniorities <br>within each speciality group.<br><br>Something like this .....<br><br>==============================================<br>Surgeon<br> medical student 2<br> registrar 3<br> house officer 6<br><br>Dentist<br> medical student 1<br> registrar 3<br> house office 1<br>===============================================<br><br><br>Any ideas?<br> <br><br><br><br><br><br>