Quantcast
Channel: Latest Questions by Mason Ghafoori
Viewing all articles
Browse latest Browse all 8

sql server IN statement

$
0
0

how can i rewrite the following oracle statement in SQL Server:

Select * from table_A a where (a.id, a.name, a.lname) in (select b.id, b.name, b.lnmae from table_B b)

when i run this query in sql server, i get an error "Incorrect syntax near ','". It does not like more than one field in the "IN" list.


Viewing all articles
Browse latest Browse all 8

Trending Articles