Hi,
I have table structure as follows
Table Name- facilities
facility_id | hotel_code | facility_name
1 1 Parking
2 1 AC
3 2 Parking
4 3 Parking
5 3 AC
6 4 AC
Now i have to find the 'hotel_code' that having 'Parking' and 'AC' both facilities ie 'hotel_code' as 1 and 3.
I hv tried following query
SELECT hotel_code FROM facilities WHERE facility_name IN ('Parking','AC') GROUP BY hotel_code
returns
1
2
3
4
Plz give some suggestion...