Skip to content

Commit bb8618e

Browse files
authored
Adding or condition on two values in one field
1 parent 7445496 commit bb8618e

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)