Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question X. (4 points) Write a relational algebra expression for the cars that finished the race in a time smaller than all races average time,

image text in transcribed

Question X. (4 points) Write a relational algebra expression for the cars that finished the race in a time smaller than all races average time, Instructions When writing a query, write the query in a way that it would work over all possible database instances and not just for the given example instance! Consider the following database schema and example instance for a race car database: Good luck Car Racer A ID Name 1 Sam 2 Suzan 3 Alice Gender Birth year M 1984 F 1982 F 1980 CID Manufacturer Horsepower Nbr of cylinder C1 Mercedes 1200 6 C2 2400 8 8 C3 800 4 Question XI- (3 points) Write a relational algebra name that participated in each race. Ferrar Mercedes Result Race Result DC ID RIDA_ID Time R1_1 C1 R1 1 400 R1_2 C2 RI2 500 R1_3 C3 R1 3 375 RID Type Location R1 F1 UK RZ Ballycross Portugal R3 F1 USA Sponsor R_ID R1 R1 RZ CD Sponsor C1 Motorola C3 Pepsi C4 Michelin Schema Question XII 15 points) Write a relational algebra expression that returns the manufacturer name whose cars won the greatest number of races. Racer: (A_ID, Name, Gender, Birth read Race (R_ID, Type, Location Result (Result_D.C_ID, A_ID, R_ID, Time) C_ID is a foreign key for car and A_ID is foreign key for Racer and R_ID is a foreign key fer Race Question XIII. (4 points) Write a relational algebra expression manufacturer far cars with law horsepower, meaning that all its manufactured cars are less than 300 horsepower. Sponsor (R_ID, C_ID, Sponsor) Car (C_ID, Make, Horsepower Question X. (4 points) Write a relational algebra expression for the cars that finished the race in a time smaller than all races average time, Instructions When writing a query, write the query in a way that it would work over all possible database instances and not just for the given example instance! Consider the following database schema and example instance for a race car database: Good luck Car Racer A ID Name 1 Sam 2 Suzan 3 Alice Gender Birth year M 1984 F 1982 F 1980 CID Manufacturer Horsepower Nbr of cylinder C1 Mercedes 1200 6 C2 2400 8 8 C3 800 4 Question XI- (3 points) Write a relational algebra name that participated in each race. Ferrar Mercedes Result Race Result DC ID RIDA_ID Time R1_1 C1 R1 1 400 R1_2 C2 RI2 500 R1_3 C3 R1 3 375 RID Type Location R1 F1 UK RZ Ballycross Portugal R3 F1 USA Sponsor R_ID R1 R1 RZ CD Sponsor C1 Motorola C3 Pepsi C4 Michelin Schema Question XII 15 points) Write a relational algebra expression that returns the manufacturer name whose cars won the greatest number of races. Racer: (A_ID, Name, Gender, Birth read Race (R_ID, Type, Location Result (Result_D.C_ID, A_ID, R_ID, Time) C_ID is a foreign key for car and A_ID is foreign key for Racer and R_ID is a foreign key fer Race Question XIII. (4 points) Write a relational algebra expression manufacturer far cars with law horsepower, meaning that all its manufactured cars are less than 300 horsepower. Sponsor (R_ID, C_ID, Sponsor) Car (C_ID, Make, Horsepower

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago