I need to implement the following query in SQL Server:
select * from table1 WHERE (CM_PLAN_ID,Individual_ID) IN ( Select CM_PLAN_ID, Individual_ID From CR
Simple and wrong way would be combine two columns using + or concatenate and make one columns.
Select * from XX where col1+col2 in (Select col1+col2 from YY)
This would be offcourse pretty slow. Can not be used in programming but if in case you are just querying for verifying something may be used.