CSE 132A Lecture Notes - Lecture 5: Universal Quantification

66 views3 pages

Document Summary

Find all actors or directors (select actor as name. Find all actors who are not directors (select actor as name. Ex: for each title in movie, find the # of theaters showing that title. Ex: find the theaters showing more than 1 title. Where t. th = s. th and s. title <> t. title: using count. Where th = s. th and title <> s. title ) Where exists (select : group by + having. Ex: find the theaters showing only movies by berto. Where th = s. th: movie by bero = at least one of the dir is berto, movies may have multiple dir, not in. Where th not in (select th from sch. Where title not in (select title from movie. Titles by berto! (select th from movie, sch. Where movie. title = sch. title and dir <> berto) Where dir = berto ): using the unique dir assumption.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents