Hi, The problem I have is this, I have a table as follows:
AreaID - RoomID - RoomType
1 1 A
1 2 A
1 3 A
1 4 B
1 5 C
2 1 A
2 2 B
2 3 B
3 1 A
3 2 C
4 1 A
4 2 A
And what I want is the Number of Room A's in Each Area with at least 1 room of type 'B' or 'C'
So the result would be somehing like
AreaID - NumberOfRoomA
1 3
2 1
3 1
So that 4 does not appear (as it has no B OR C)
Thanks in advance
AreaID - RoomID - RoomType
1 1 A
1 2 A
1 3 A
1 4 B
1 5 C
2 1 A
2 2 B
2 3 B
3 1 A
3 2 C
4 1 A
4 2 A
And what I want is the Number of Room A's in Each Area with at least 1 room of type 'B' or 'C'
So the result would be somehing like
AreaID - NumberOfRoomA
1 3
2 1
3 1
So that 4 does not appear (as it has no B OR C)
Thanks in advance