October 2002
Beginner
864 pages
18h 41m
English
Nothing exists in a vacuum, so this section takes you through some composite examples that demonstrate how combinations of clauses perform together.
Find all the checks written for CASH and GAS in the CHECKS table and order them by REMARKS.
SELECT PAYEE, REMARKS FROM CHECKS WHERE PAYEE = 'CASH' OR REMARKS LIKE'GA%' ORDER BY REMARKS; PAYEE REMARKS ==================== ==================== JOANS GAS GAS JOANS GAS GAS LOCAL UTILITIES GAS CASH TRIP TO BOSTON CASH TRIP TO DAYTON CASH WILD NIGHT OUT
Note the use of LIKE to find the REMARKS that started with GA. With the use of OR, data was returned if the WHERE clause ... |
Read now
Unlock full access