Skip to content

Commit 5017050

Browse files
authored
Merge pull request Cheatsheet-lang#9 from Deepak2299/master
Adding or condition on two values for one column
2 parents 7445496 + bb8618e commit 5017050

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
@@ -282,6 +282,11 @@ select * from employee where salary > 3000 and salary < 4000;
282282
select * from employee where salary between 3000 and 4000;
283283
```
284284

285+
### OR
286+
```sql
287+
select * from employee where salary = 3000 or salary = 4000;
288+
```
289+
285290
#### Null
286291
```sql
287292
select * from employee where salary is NULL;

0 commit comments

Comments
 (0)