my query is :-
SqlCommand sqlcmd = new SqlCommand("Select wifi,restaurant,Transport,Exercise,Business,FoodBar,Casino,Swimming,Shopping,Wheelchair from hotel_facilities where wifi,restaurant,Transport,Exercise,Business,FoodBar,Casino,Swimming,Shopping,Wheelchair is Not null in(Select hotel_name from hotel_Addrecord where hotel_id='" + getid + "' )", sqlcon);

Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted May 20, 2015, 10:49 PM EDT
SqlCommand sqlcmd = new SqlCommand("Select wifi,restaurant,Transport,Exercise,Business,FoodBar,Casino,Swimming,Shopping,Wheelchair from where hotel_name is in(Select hotel_name from hotel_Addrecord where hotel_id='" + getid + "' )", sqlcon);
it may help you