Lecture 12 DML Select
Lecture 12 DML Select
com/wisdom/bismillah-nature/
CSC271 – DATABASE SYSTEMS
SQL SELECT
Row Filtering
Operators
Comparison operators
String & Set operators
Logical operators
LIMITING ROWS USING A SELECTION
EMPLOYEES
“retrieve all
employees
in department 90”
LIMITING THE ROWS SELECTED
Character strings and date values are enclosed in single quotation marks.
Character values are case sensitive, and date values are format sensitive.
The default date format is DD-MON-RR.
Operator Meaning
= Equal to
Operator Meaning
SELECT first_name
FROM employees
WHERE first_name LIKE 'S%';
USING THE LIKE CONDITION
SELECT last_name
FROM employees
WHERE last_name LIKE '_o%';
You can use the ESCAPE identifier to search for the actual % and _ symbols.
USING THE NULL CONDITIONS
Operator Meaning