How to check if a date is in a list of dates - TSQL -
i trying create sql query checks if date in list of dates query doesn't work...
select * table1 field1 = value1 , convert(nvarchar(15),date_start,101) in (select convert(nvarchar(15),date_end,101) table2 )
this query should return values doesn't...
do not convert data think there no need
try :
select * table1 field1 = value1 , date_start in (select date_end table2)
Comments
Post a Comment