+ 3
subqueries
subqueries can be from another table or must be in the same table ?
1 Respuesta
+ 7
Yes, they can be from another table. See example.
SELECT column-names
FROM table-name1
WHERE value IN (SELECT column-name
FROM table-name2
WHERE condition)