In SQL, can we always write an inner join statement as a main query and subquery?
Posted
by Jian Lin
on Stack Overflow
See other posts from Stack Overflow
or by Jian Lin
Published on 2010-04-24T23:24:54Z
Indexed on
2010/04/24
23:33 UTC
Read the original article
Hit count: 179
In SQL, can we always write an inner join statement as a main query and subquery?
For example,
select * from gifts g where g.giftID in (select giftID from sentGifts);
can do a join and show the gifts sent in the sentGifts table, but it won't be able to show the sentTime because that is inside the subquery?
© Stack Overflow or respective owner