CUSTOMER Customer table is composed of customer number, name and phone number. Give and fill-in the appropriate attribute name for each of the column. custID 123 124 125 126 reservelD 5001 5002 5003 5004 5005 5006 5007 faxilD custName Ahmad Bin Abdullah Fatimah Binti Adam RESERVATION Each reservation is for one taxi. Reservation table is composed of reservation identification number, start reservation date, end reservation date, reservation days requested by customers starting from reservation date until end of reservation date, customer number that make the reservation and taxi number assigned to the reservation. Give and fill-in the appropriate attribute name for each of the column. LAI LA2 Ruqayya Binti Idris Sulaiman Bin Daud LA3 LA4 startDate 01/10/2019 05/10/2019 05/10/2019 15/10/2019 20/10/2019 27/10/2019 02/11/2019 taxiType Sedan Sedan endDate 03/10/2019 12/10/2019 08/10/2019 17/10/2019 25/10/2019 30/10/2019 04/11/2019 Van Van cust Phoneno TAXI Taxi table is composed of taxi number, taxi type and taxi driver. Give and fill-in the appropriate attribute name for each of the column. 011-11223344 019-32145678 taxiDriver Kassim Siti Wan Ali 011-98745632 019-99887766 rDays 2 7 3 2 5 3 2 custID 123 126 125 123 124 126 123 taxilD LA3 LA3 LA2 LAI LA2 LA3 LA4 After you have filled-in the appropriate attribute names for each column in all the above tables, provide the SQL and Relational Algebra for each of the following queries: a) Display the details about reservations for taxi number 'LA2' that have more than 3 reservation days. b) List the taxi number that do not have any reservations in the month of October 2019. c) Display the reservation id, start reservation date, reservation days, customer name and customer phone of all reservations for driver 'Siti'.

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter4: Single-table Queries
Section: Chapter Questions
Problem 11CAT
icon
Related questions
icon
Concept explainers
Question
CUSTOMER
Customer table is composed of customer number, name and phone number.
Give and fill-in the appropriate attribute name for each of the column.
custID
123
124
125
126
reservelD
5001
5002
5003
5004
5005
5006
5007
RESERVATION
Each reservation is for one taxi. Reservation table is composed of reservation identification number, start
reservation date, end reservation date, reservation days requested by customers starting from reservation
date until end of reservation date, customer number that make the reservation and taxi number assigned
to the reservation.
Give and fill-in the appropriate attribute name for each of the column.
taxill
custName
Ahmad Bin Abdullah
Fatimah Binti Adam
LAI
LA2
Ruqayya Binti Idris
Sulaiman Bin Daud
LA3
LA4
startDate
01/10/2019
05/10/2019
05/10/2019
15/10/2019
20/10/2019
27/10/2019
02/11/2019
taxiType
endDate
03/10/2019
12/10/2019
08/10/2019
17/10/2019
25/10/2019
Sedan
Sedan
Van
Van
30/10/2019
04/11/2019
cust Phoneno
TAXI
Taxi table is composed of taxi number, taxi type and taxi driver.
Give and fill-in the appropriate attribute name for each of the column.
011-11223344
019-32145678
011-98745632
019-99887766
taxiDriver
Kassim
Siti
Wan
Ali
rDays
2
7
3
2
5
3
2
custID
123
126
125
123
124
126
123
taxilD
LA3
LA3
LA2
LAI
LA2
LA3
LA4
After you have filled-in the appropriate attribute names for each column in all the above tables,
provide the SQL and Relational Algebra for each of the following queries:
a) Display the details about reservations for taxi number 'LA2' that have more than 3
reservation days.
b) List the taxi number that do not have any reservations in the month of October 2019.
c) Display the reservation id, start reservation date, reservation days, customer name and
customer phone of all reservations for driver 'Siti'.
d) Find how many reservations have been made for each taxi. Sort the output from the highest
to the lowest number of reservations.
e) Display the customer's name, phone number and their total number of reservation days.
Display only the customers that have made 10 or more total number of reservation days.
Transcribed Image Text:CUSTOMER Customer table is composed of customer number, name and phone number. Give and fill-in the appropriate attribute name for each of the column. custID 123 124 125 126 reservelD 5001 5002 5003 5004 5005 5006 5007 RESERVATION Each reservation is for one taxi. Reservation table is composed of reservation identification number, start reservation date, end reservation date, reservation days requested by customers starting from reservation date until end of reservation date, customer number that make the reservation and taxi number assigned to the reservation. Give and fill-in the appropriate attribute name for each of the column. taxill custName Ahmad Bin Abdullah Fatimah Binti Adam LAI LA2 Ruqayya Binti Idris Sulaiman Bin Daud LA3 LA4 startDate 01/10/2019 05/10/2019 05/10/2019 15/10/2019 20/10/2019 27/10/2019 02/11/2019 taxiType endDate 03/10/2019 12/10/2019 08/10/2019 17/10/2019 25/10/2019 Sedan Sedan Van Van 30/10/2019 04/11/2019 cust Phoneno TAXI Taxi table is composed of taxi number, taxi type and taxi driver. Give and fill-in the appropriate attribute name for each of the column. 011-11223344 019-32145678 011-98745632 019-99887766 taxiDriver Kassim Siti Wan Ali rDays 2 7 3 2 5 3 2 custID 123 126 125 123 124 126 123 taxilD LA3 LA3 LA2 LAI LA2 LA3 LA4 After you have filled-in the appropriate attribute names for each column in all the above tables, provide the SQL and Relational Algebra for each of the following queries: a) Display the details about reservations for taxi number 'LA2' that have more than 3 reservation days. b) List the taxi number that do not have any reservations in the month of October 2019. c) Display the reservation id, start reservation date, reservation days, customer name and customer phone of all reservations for driver 'Siti'. d) Find how many reservations have been made for each taxi. Sort the output from the highest to the lowest number of reservations. e) Display the customer's name, phone number and their total number of reservation days. Display only the customers that have made 10 or more total number of reservation days.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning