u had 3 join attributes...
u should write an inner join for all these 3 colums...
if u have primary key in 1 table and forign key in another table...u can simply applyinner join on key column only.
select Num from table where Num = (select ID from Num where Num = 0 )
in this case the sub query should result a single ID.(according to query)
select ID from table where Num IN (select ID from table where Num = 0 )
in this case the sub query should result multiple IDs.
(So it works fine)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.