php - How to get records from the table which is not available in other table? -
i have 2 tables namely roominfo , guestrecordtransac...roominfo containd room_id,room_no , roomtype fields whereas guestrecordtransac contains id,roomtype,roomno ,checkindate ,checkoutdate fields
i tried this
select room_no roominfo room_no not in (select roomno guestrocordtransac roomtype='".$roomtype."' between '".$check_in."' , '".$check_out."' ) , roomtype='".$roomtype."'
i want room_no roominfo of particular type , not between date of checkin andd checkout
(your question not clear, try give information more clearly)
i think require/asking :
select room_no roominfo room_no not in (select roomno guestrocordtransac roomtype='".$roomtype."' , curdate() between '".$check_in."' , '".$check_out."`'
Comments
Post a Comment