Skip to content

Commit d096344

Browse files
committed
added about where clause
1 parent 05f5fc2 commit d096344

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,46 @@ select employee_id, first_name from employee;
164164
select employee_id, first_name from employee where age > 25;
165165
```
166166

167+
### Where Clause
168+
169+
#### Greater than(>)
170+
```sql
171+
select * from employee where salary > 3100;
172+
```
173+
174+
#### Greater than equal to(>=)
175+
```sql
176+
select * from employee where salary >= 3100;
177+
```
178+
179+
#### Less than(<)
180+
```sql
181+
select * from employee where salary < 4500;
182+
```
183+
184+
#### Less than equal to(<=)
185+
```sql
186+
select * from employee where salary <= 4350;
187+
```
188+
189+
#### Range
190+
```sql
191+
select * from employee where salary > 3000 and salary < 4000;
192+
```
193+
194+
#### BETWEEN and AND
195+
```sql
196+
select * from employee where salary between 3000 and 4000;
197+
```
198+
199+
#### Like Operator
200+
```sql
201+
select * from employee where name like '%Jo%'; -- Similar to *Jo* in regrex
202+
```
203+
```sql
204+
select * from employee where name like 'Jo_'; -- Similar to Jo. in regrex
205+
```
206+
167207
## Views
168208

169209
#### Create a view

0 commit comments

Comments
 (0)