Professional Documents
Culture Documents
Operators Are The Elements You Use Inside An Expression To Articulate How You Want Specified Conditions To Retrieve Data
Operators Are The Elements You Use Inside An Expression To Articulate How You Want Specified Conditions To Retrieve Data
Operators Are The Elements You Use Inside An Expression To Articulate How You Want Specified Conditions To Retrieve Data
When you need to find everything except for certain data, use the inequality symbol,
which can be either < > or !=
SELECT *
FROM PARTS
WHERE NAME LIKE 'A%';
you would get any name that starts with A:
SQL> SELECT FIRSTNAME || LASTNAME ENTIRENAME
FROM FRIENDS; OUTPUT:
ENTIRENAME
----------------------
AL BUNDY
AL MEZA
BUD MERRICK
The two operators IN and BETWEEN provide a shorthand for functions If you
wanted to find friends in Colorado, California, and Louisiana, you could type
the following:
SELECT *
FROM FRIENDS
WHERE STATE IN('CA','CO','LA');
LASTNAME FIRSTNAME AREACODE PHONE ST ZIP
-------------- -------------- --------- -------- -- -----
MERRICK BUD 300 555-6666 CO 80212
MAST JD 381 555-6767 LA 23456
PERKINS ALTON 911 555-3116 CA 95633