May 2019
Beginner to intermediate
548 pages
12h 39m
English
Subqueries can be used in the WHERE condition to get maximum values directly from another table. For example, SUBQUERY can be used with the following additions:
- ALL|ANY|SOME
If using ALL, the expression is true if the comparison is true for all rows in the results set of the scalar subquery. Consequently, if the ANY or SOME addition is used, the expression is true if it is true for at least one of the rows in the results set of the subquery:
- EXIST
If using the EXIST subquery, the expression is true if the table with a subquery contains at least one row:
- IN
The IN operator is working in the same way as in the WHERE condition, but the result will be taken dynamically from the database.
For instance, if we want to book a flight ...
Read now
Unlock full access