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'.
SQL
SQL stands for Structured Query Language, is a form of communication that uses queries structured in a specific format to store, manage & retrieve data from a relational database.
Queries
A query is a type of computer programming language that is used to retrieve data from a database. Databases are useful in a variety of ways. They enable the retrieval of records or parts of records, as well as the performance of various calculations prior to displaying the results. A search query is one type of query that many people perform several times per day. A search query is executed every time you use a search engine to find something. When you press the Enter key, the keywords are sent to the search engine, where they are processed by an algorithm that retrieves related results from the search index. Your query's results are displayed on a search engine results page, or SER.
Step by step
Solved in 2 steps