Can we join a table with the result of a subquery, such as:
select name from gifts
LEFT OUTER JOIN (select giftID from gifts) ...
If not, can it be done by some methods, such as creating a temporary table?
P.S. Can a subquery only appear using IN or NOT IN, or EXISTS or NOT EXISTS?