![[Spacer]](Images/dot_clear.gif) |
The WHERE clause can be used in conjunction with
various testing operators besides the "=" sign. Specifically, you
can use the ">", "<", "<=", or ">=" operators to select ranges. Thus,
to get a report of all the employees making more that 45,000 per year,
you might use the following:
SELECT *
FROM EMPLOYEES
WHERE EMP_SALARY > 45000;
If you are comparing a column of the CHARACTER data type, you can
place the match string in single quotes ('').
For example, to find out Rick Tan's phone
number from the CLIENTS table,
you might use:
SELECT C_PHONE, C_NAME
FROM CLIENTS
WHERE C_NAME = 'Rick Tan';
In this case, the database would
return the following:
C_PHONE C_NAME
------------------------
649-2038 Rick Tan
------------------------
|