Professional Documents
Culture Documents
Concatenation
• means to connect or link together in a series
The syntax is:
string1 || string2 || '123' || string_n
WHERE salary > 9000 AND WHERE salary >= 9000 AND
salary < 11000; salary <=11000;
• IN
The IN condition is also known as the "membership
condition."
SELECT city, state_province,
country_id WHERE country_id = 'UK'
FROM locations OR country_id = 'CA';
WHERE country_id IN('UK', 'CA');
Comparison Operators
• LIKE
• Two symbols : the (%) and the underscore (_) – called wildcard
characters, can be used to construct a search string.
• The percent (%) symbol is used to represent any sequence of zero
or more characters.
• The underscore (_) symbol is used to represent a single character.
SELECT last_name
FROM employees
WHERE last_name LIKE 'o';
IS NULL, IS NOT NULL
• The IS NULL condition tests for unavailable,
unassigned, or unknown data.
SELECT last_name, manager_id
FROM employees
WHERE manager_id IS NULL;