You are in the process to create a database that contains all information about different Taxi...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You are in the process to create a database that contains all information about different Taxi companies in your country. This will help the customers to select their desired company, and reserve the appropriate car, and driver accordingly. For that reason, your TAXI RESERVATION Database should be composed as following: ➤ The Taxi Company has a unique name, a unique company registration number, a founding date, headquarter manager, headquarter address, and headquarter phone number. Each company can have many branches. ► Each branch has a name, an address, a phone number, a manager, two administrative staffs, taxi car owners, and drivers. It is not necessary that the number of cars is equal to the number of drivers. > Each of the manager and the administrative staffs has a name, a social security number, office number, address, birth date (The age should be between 18 and 65), and personal phone number (can have many phone numbers). ➤ The car owner can provide one or more cars to the company. Each owner has a name, id, date of birth, an address, and a phone number. ► Each taxi car has a unique plate number, model, and number of seats. A taxi car can be driven by any driver. > Each driver, which can be an owner of a car, has an id, name, age (less than 60), an address, phone number, and net salary. Each driver is assigned to a specific branch. ➤ All these taxis are only available for private clients. The client information is collected through phone calls. Each client has a name, an id, an address, and a phone number. ➤When a reservation is selected, the name and phone number of the client are taken, then the pick-up date/time and pick- up/drop-off address are noted, in addition to the chosen company and car. Each reservation is allocated a unique reservation_id. The reservation is assigned to a driver, start/end time of the trip, and fees. Note that if the driver makes more than three trips per a day, he will receive an extra of 5% of his net salary. ➤ You can add any assumption and suggestion if needed. Steps to Be Done Step 1: Data Modeling - Create an ER diagram, Step 2: Map ER diagram into a relational model, Step 4: Create the tables and fill them with appropriate records, Step 5: SQL Queries according to the requirements below SQL Queries: You should get the following information from your database: > Update the name of 2 branches of one company. ➤ List the name of drivers associated with a specified branch. List the name of drivers who are over 55 years old in all companies. The names and phone numbers of the Managers for a specific company. ➤ The names of all drivers in each city. The details of all cars in each branch for a specific company. > The total number of car owners in each branch for all companies listed in group in an alphabetically order. The total number of cars for each company. > The name of owners who have more than two cars. > The total number of private clients in each branch for a specific company. The total reservation undertaken by a driver on a given day. ➤ The total daily fee in each branch on a given date. ➤ The daily salary of all drivers. Write 5 additional queries that you find useful for this application. They should be complex queries (e.g. union, intersection, minus, nested queries...) You are in the process to create a database that contains all information about different Taxi companies in your country. This will help the customers to select their desired company, and reserve the appropriate car, and driver accordingly. For that reason, your TAXI RESERVATION Database should be composed as following: ➤ The Taxi Company has a unique name, a unique company registration number, a founding date, headquarter manager, headquarter address, and headquarter phone number. Each company can have many branches. ► Each branch has a name, an address, a phone number, a manager, two administrative staffs, taxi car owners, and drivers. It is not necessary that the number of cars is equal to the number of drivers. > Each of the manager and the administrative staffs has a name, a social security number, office number, address, birth date (The age should be between 18 and 65), and personal phone number (can have many phone numbers). ➤ The car owner can provide one or more cars to the company. Each owner has a name, id, date of birth, an address, and a phone number. ► Each taxi car has a unique plate number, model, and number of seats. A taxi car can be driven by any driver. > Each driver, which can be an owner of a car, has an id, name, age (less than 60), an address, phone number, and net salary. Each driver is assigned to a specific branch. ➤ All these taxis are only available for private clients. The client information is collected through phone calls. Each client has a name, an id, an address, and a phone number. ➤When a reservation is selected, the name and phone number of the client are taken, then the pick-up date/time and pick- up/drop-off address are noted, in addition to the chosen company and car. Each reservation is allocated a unique reservation_id. The reservation is assigned to a driver, start/end time of the trip, and fees. Note that if the driver makes more than three trips per a day, he will receive an extra of 5% of his net salary. ➤ You can add any assumption and suggestion if needed. Steps to Be Done Step 1: Data Modeling - Create an ER diagram, Step 2: Map ER diagram into a relational model, Step 4: Create the tables and fill them with appropriate records, Step 5: SQL Queries according to the requirements below SQL Queries: You should get the following information from your database: > Update the name of 2 branches of one company. ➤ List the name of drivers associated with a specified branch. List the name of drivers who are over 55 years old in all companies. The names and phone numbers of the Managers for a specific company. ➤ The names of all drivers in each city. The details of all cars in each branch for a specific company. > The total number of car owners in each branch for all companies listed in group in an alphabetically order. The total number of cars for each company. > The name of owners who have more than two cars. > The total number of private clients in each branch for a specific company. The total reservation undertaken by a driver on a given day. ➤ The total daily fee in each branch on a given date. ➤ The daily salary of all drivers. Write 5 additional queries that you find useful for this application. They should be complex queries (e.g. union, intersection, minus, nested queries...)
Expert Answer:
Answer rating: 100% (QA)
taxicompany registernumber INT companyname VARCHAR10 foundingdate VARCHAR10 headquarteraddress VARCH... View the full answer
Posted Date:
Students also viewed these databases questions
-
Q1: Discuss "Contract System" of CNW KPK for civil construction work from inviting of tender to allotment of work.
-
The company's financial year is the calendar year. Certain costs (incl. wages, rents, and taxes) of 210000 total are paid out in the middle of each month. The company's first financial year is,...
-
This is the Comprehension: And these are the questions plz answer all the questions properly Start speaking the language you want to learn. Practice helps with usage and it develops one's level of...
-
Austin Limited is trying to determine the value of its ending inventory as of February 28, 2019, the companys year-end. The following transactions occurred, and the accountant asked your help in...
-
1. Why do you think Altitude Online uses two PC plat- formsWindows and Macrather than standardizing on one? What are the benefits and drawbacks of this decision? 2. Why do you think a business is...
-
Anita sold and delivered an automobile to Marvin, a minor. Marvin, during his minority, returned the automobile to Anita, saying that he disaffirmed the sale. Anita accepted the automobile and said...
-
Refer to the data given for the Artic Company in Problem P12-1A. Required a. Calculate the change in cash that occurred during 2019. b. Prepare a statement of cash flows using the direct method. c....
-
Bill Holliday is not sure what she should do. He can either build a quadplex (i.e., a building with four apartments), build a duplex, gather additional information, or simply do nothing. If he...
-
Information security vulnerability analysis tool Your browser should return several hits. Choose a topic which can be a tool, framework, practice, a methodology or technology related to vulnerability...
-
At your daughter's 6th birthday party she tells you that she wants to go to Princeton. It will cost you $30,000 per year for her to attend this four year program. You start putting money into an...
-
What should be the separation distance, d, between the two slits such that the path difference between the two light waves emanated from both slits is one-third of its wavelength?
-
Dextor Ltd provided you with information regarding two of their property, plant and equipment ( PPE ) items: Machine X Machine Z Date of purchase 1 / 4 / 2 0 2 0 1 / 4 / 2 0 2 0 Cash purchase cost $...
-
1. To what extent is the government and by extension the tax payer obligated to pay for rebuilding these poor communities impacted by natural disasters? 2. Kind of extending on this question, to what...
-
A 30.0-cm-long spring is hanging vertically. When a 100.0-g object is attached to the bottom end of the spring, the spring is stretched to a new length of 34.5 cm. What is the spring constant in N/m?...
-
Environmental issues, including climate change, are increasingly discussed in the executive suite as it relates to strategy formulation and implementation. Questions like how "green" a company should...
-
After implementing the Galerkin method an engineer has ended up with two integrals for two DOFs 1 S'20 2x (vx+2vx+2ux+ 2u+1) dx fxv 0 Provide below the value of u using 2 decimals. x (vx+2vx+2ux +...
-
Obtaining a degree in accounting can open up a wide range of career opportunity both in private and public sectors. According to the U.S. Bureau of Labor Statistics website, jobs in the financial...
-
Chapter 9 Stock Valuation at Ragan Engines Input area: Shares owned by each sibling Ragan EPS Dividend to each sibling Ragan ROE Ragan required return Blue Ribband Motors Corp. Bon Voyage Marine,...
-
An individual, perfectly competitive firm a. may increase its price without losing sales. b. is a price maker. c. has no perceptible influence on the market price. d. sells a product that is...
-
In a market with perfectly competitive firms, the market demand curve is ___ and the demand curve facing each firm is ___. a. upward sloping; horizontal b. downward sloping; horizontal c. horizontal;...
-
Describe and explain how the shape of the long-run supply curve depends on the extent to which input costs change with the entry or exit of firms in the industry.
Study smarter with the SolutionInn App