fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@ -0,0 +1,24 @@
---
title: SQL or Operator
---
## SQL or Operator
You can use the `OR` operator in the `WHERE` clause of `SELECT` statement. You use it when you want to select a record that satisfies at least one of the conditions in your `OR` statement.
Here is an example that selects all records from the Person table who are either male or who have the name “Mary”:
```sql
SELECT Id, Name, DateOfBirth, Gender
FROM Person
WHERE Gender = M OR Name = Mary
```
You can combine others operators in the `WHERE` clause (use parenthesis to indicate the order of operations) like in this example:
```sql
SELECT Id, Name, DateOfBirth, Gender
FROM Person
WHERE Gender = M AND (Name = Peter OR Name = John)
```
This example selects all records where Gender is "M" and Name is "Peter" as well as where Gender is "M" and Name is "John".