I have an SQL Server Query:
select *from table1 where column in ('list of values')
When I execute this, I get all the details, however, when I do this:
select *from table1 where column in ('list of values') and date_of_req='2011-03-15'
I get an empty table. All the column headings are there, but with no data. How to overcome this? I basically want to match all of those values in the IN clause and the date and display only that data.
Where am I going wrong?