COMP 3380 Lecture Notes - Lecture 7: Candidate Key, First Normal Form, Functional Dependency

46 views7 pages

Document Summary

Instructors: dr. carson k. leung & adam pazdor. 04-07ex-1: consider two relations r (a, c) and s (b, c, d) with the following instances: What is the resulting relation t of a natural join on r and s (i. e. , t = r s): consider a relation r (a, b, c, d) has the following instance: 6: consider the following two relations: a relation r (a, b) containing nr unique tuples, and a relation s (a, b) containing ns unique tuples. Let nt represent the number of tuples in t = r s. [ ] nr=10, ns=15 and nt = 5: consider the following customer database, customers (cid, cname, age, gender, visits (cid, pizzeria, eats (cid, pizza, serves (pizzeria, pizza, price) Write a sql expression for each the above queries. -- end of optional exercise for units 04-07 --- Sample solution to optional exercise for units 04-07.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents