File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,46 @@ select employee_id, first_name from employee;
164
164
select employee_id, first_name from employee where age > 25 ;
165
165
```
166
166
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
+
167
207
## Views
168
208
169
209
#### Create a view
You can’t perform that action at this time.
0 commit comments