Skip to Main Content
Data Analysis for Database Design, 3rd Edition
book

Data Analysis for Database Design, 3rd Edition

by David Howe
May 2001
Intermediate to advanced content levelIntermediate to advanced
336 pages
14h 36m
English
Butterworth-Heinemann
Content preview from Data Analysis for Database Design, 3rd Edition
(a) SELECT keeper_name FROM keeper
(b) SELECT DISTINCT food FROM eats
(c) SELECT animal_name FROM eats WHERE food = 'hay' OR food = 'people'
(d) SELECT animal_name, keeper_no FROM supervision WHERE keeper_no
> '100' (4 min)
4. Write SQL statements to derive the answers to the following queries. Each result
table should not contain any superfluous data.
(a) What does a camel eat?
(b) What are the keeper_no(s) of the keepers called Morris? (1 min)
5. Write down the table occurrences generated by each of the following queries.
(a) SELECT * FROM eats JOIN supervision USING (animal_name)
(b) SELECT food FROM eats, supervision
WHERE eats.animal_name = supervision.animal_name ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Quality Engineering in Financial Services

Data Quality Engineering in Financial Services

Brian Buzzelli

Publisher Resources

ISBN: 9780750650861