Sql Returning null from second select -
i have query this
select * cars car_id!=(select car_id reservation reservation_date between '2013-05-13' , '2013-05-15')
i want take car_id='' if nothing between dates it's not working.
first check if returning proper values
select car_id reservation reservation_date between '2013-05-13' , '2013-05-15'
try this:
select * cars car_id not in ( select car_id reservation reservation_date between '2013-05-13' , '2013-05-15' )
Comments
Post a Comment