Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started