Professional Documents
Culture Documents
Structured Query Language: Shahinza Manzoor Lab .Engineer
Structured Query Language: Shahinza Manzoor Lab .Engineer
SHAHINZA MANZOOR
Lab .Engineer
shahinzam0s23@gmail.com
Use Of where CLAUSE
The where clause can compare value in column, arithmetic expression or function.
Syntax
Where restrict the query to the row that meet the condition
Condition is compared the column name, arithmetic
expression
Example:
SELECT column name
FROM table name
WHERE condition
Example
Comparison Condition
Comparison Condition
Other comparison operator
Use of BETWEEN
Use of IN
Example
Use of NULL
NVL(comm,0)
Tasks:
Upper (‘ali’)=ALI
Lower(‘ALI’)=ali
Initcap (‘ali’)=Ali
Logical condition
Use Of AND
Use Of AND Operator
Use Of OR Operator
Use of OR
Use Of Not Operator
Us Of NOT IN Operator
Sorting By Multiple Column
Example:
Sorting In DEC Order
Sorting By Column Alias
Tasks: