Question: Suppose the relation R 1 ( A , B ) and R 2 ( B , C , D ) have the following tuples: Compute
Suppose the relation RAB and RBCD have the following tuples:
Compute the thetajoin of R and R with conditions RB RB AND RA RC Which of the following tuples is
in the result? Assume each tuple has schema A RB RB C D
a G T b C C c C C d A C
Questions and Give the following queries in the relational algebra using the relational schema:
studentid namecan be called ST
enrolledInid codecan be called EN
subjectcode lecturercan be called either SU or SU
Who teaches cs or cs
Who teaches at least two different subjects?
What are the names of students in cs or cs
What are the names of students in both cs and cs
Bonus question. Consider the database with the following schema:
Personname age, gender name is key
Frequentsname iceCreamShopname iceCreamShop is a key
Eatsname flavorname flavor is a key
SellsiceCreamShop flavor, priceiceCreamShop flavor is a key
Find an ice cream shop that is frequented by people older than but younger than years old.
A B
A
T
G
C
T
B C D
C
A
T
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
