I want to structure a query with no using INNER JOIN. I figured out that an INNER like this:
Select A.Name
from A INNER JOIN B on (A.id1 = B.id1 AND A.id2 = B.id2)
Where B.id = @Id
produce the same as:
select A.Name
from A
where
A.id1 in (select B.id1 from B where B.id = @Id)
and
A.id2 in (select B.id2 from B where B.id = @Id)
Isn't it?
Note that my question is not about if it is better or not, only if it is an equivalent or if there is not an equivalente for that INNER.