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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -