Skip to content

Commit 9048ee2

Browse files
authored
Merge pull request enochtangg#3 from will7200/patch-1
Update README.md
2 parents eeec48b + dcd95ed commit 9048ee2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ A quick reminder of all relevant SQL queries and examples on how to use them.
7373
* `SELECT` columns_names `FROM` table1 `UNION SELECT` column_name `FROM` table2;
7474
* `UNION` operator only selects distinct values, `UNION ALL` will allow duplicates
7575

76+
### **ANY|ALL**: operator used to check subquery conditions used within a WHERE or HAVING clauses
77+
* The `ANY` operator returns true if any subquery values meet the condition
78+
* The `ALL` operator returns true if all subquery values meet the condition
79+
* `SELECT` columns_names `FROM` table1 `WHERE` column_name operator (`ANY`|`ALL`) (`SELECT` column_name `FROM` table_name `WHERE` condition);
80+
7681
### **GROUP BY**: statement often used with aggregate functions (COUNT, MAX, MIN, SUM, AVG) to group the result-set by one or more columns
7782
* `SELECT` column_name1, COUNT(column_name2) `FROM` table_name `WHERE` condition `GROUP BY` column_name1 `ORDER BY` COUNT(column_name2) DESC;
7883

0 commit comments

Comments
 (0)