subqueries | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 3

subqueries

subqueries can be from another table or must be in the same table ?

2nd Jan 2017, 3:15 PM
عبد الرحيم حسونه
عبد الرحيم حسونه - avatar
1 ответ
+ 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)
2nd Jan 2017, 4:08 PM
Marcel Toeltl
Marcel Toeltl - avatar