Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

problem 1 is already solved before. Notice that , problem 2 is based on problem 1 Problem 1. (80 points) Consider the relational database defined

problem 1 is already solved before.
Notice that , problem 2 is based on problem 1
image text in transcribed
image text in transcribed
Problem 1. (80 points) Consider the relational database defined be create table passenger ( passenger.ID varchar (10), passenger_name varchar (30), passenger_city varchar (30) primary key (passenger ID)); create table seat ( train_number varchar (10), seat number varchar(10), primary key (train number seat number): create table reservation ( reservation_number varchar (10), passenger ID varchar (10), train number varchar (10) eat number varchar (10), departure station varchar (10), departure.time timestamp arrival station varchar(10), arrival time timestamp fare numeric ( 82) primary key (reservation number foreign key passenger-ID) references passenger foreign key (train_number, seat number) references seat HALL Problem 2. (20 points) Consider the relational datalyase defined in Problem 1. Express in rela- tional algebra each of the following queries: (a) (10 points) Show the train number of each train that has more than 1000 seats. (b) (10 points) Find the train(s) with the largest number of seats (i.e., trains with more seats or the same number of seats compared to every other train). For each of these trains, show the train number

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_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

Question May a taxpayer roll over money from an IRA to an HSA?

Answered: 1 week ago

Question

Question What is the doughnut hole in HSA coverage?

Answered: 1 week ago