WIA2001/WIB2001 Database SEM 1, 2021/2022 Tutorial Week 10: Select From Where Where Like
WIA2001/WIB2001 Database SEM 1, 2021/2022 Tutorial Week 10: Select From Where Where Like
DATABASE
SEM 1, 2021/2022
Tutorial Week 10
1. The following tables form part of a database for a printing company that handles printing
jobs for book publishers:
b) List the names and phone numbers of all publishers who have a rush job (jobType with
value ‘R’).
SELECT pubName, telNo FROM Publisher P, BooJob B
WHERE P.pubID = B.pubID AND
WHERE B.jobType LIKE 'R%';
e) List all items with a price below the average price of an item.
2. Write the SQL statements that will answer questions a through g based on apart of tables in
Pet Store Database as shown below.
b. List all cats with white in color and has a list price of greater than 2000.
d. List all the animals for each category that contains more than 10.
3. Based on the talk entitled “The importance of Database Security”, answer the following
questions.
a. What are the impact of data breaches to an organization? Give TWO examples of
incidents of data breaches as given in the talk.