rewriting
All checks were successful
learn org at code.softwareshinobi.com/databases.softwareshinobi.com/pipeline/head This commit looks good
All checks were successful
learn org at code.softwareshinobi.com/databases.softwareshinobi.com/pipeline/head This commit looks good
This commit is contained in:
16
landing/docs/SQL-101/016-Logical-operator-keywords.md
Normal file
16
landing/docs/SQL-101/016-Logical-operator-keywords.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# SQL Logical Operators
|
||||
|
||||
SQL Logical Operators evaluate boolean conditions to filter data, primarily used in `WHERE` and `HAVING` clauses. They are fundamental for constructing precise data retrieval queries and controlling program flow based on dataset characteristics. Understanding their behavior is essential for writing effective and performant database interactions.
|
||||
|
||||
## Logical Operator Keywords
|
||||
|
||||
| Logical Operator | Explanation |
|
||||
| :--------------- | :----------------------------------------------------------------- |
|
||||
| ALL | Returns TRUE if all comparisons in a subquery are TRUE. |
|
||||
| ANY | Returns TRUE if any comparison in a subquery is TRUE. |
|
||||
| AND | Returns TRUE if both boolean expressions are TRUE. |
|
||||
| EXISTS | Evaluates to TRUE if the subquery returns one or more rows. |
|
||||
| IN | Checks if a value matches any value in a list or subquery. |
|
||||
| BETWEEN | Tests if a value is within a given range (inclusive). |
|
||||
| NOT | Negates a boolean expression. |
|
||||
| OR | Returns TRUE if either boolean expression is TRUE. |
|
||||
Reference in New Issue
Block a user