Learnsqlpart 4
Learnsqlpart 4
SELECT column_name(s)
FROM table_name
"UK":
Country=’UK’;
included.
BETWEEN Syntax
SELECT column_name(s)
FROM table_name
There are two wildcards often used in conjunction with the LIKE
operator:
characters
FROM table_name
Like ‘_s%’
3 Find employee names which starts with "a" and ends with
"o":
Like ‘a%o’
with "M":
Not like ‘M%’
HAVING Syntax
SELECT column_name(s)
FROM table_name
WHERE condition
GROUP BY column_name(s)
HAVING condition
ORDER BY column_name(s);
Example