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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -