Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 2. Now suppose you have already built up a database for Problem 1. Write SQL queries for the following questions (because we don't have
Problem 2. Now suppose you have already built up a database for Problem 1. Write SQL queries for the following questions (because we don't have actual data yet, just write the SQL queries, you don't need to implement it in Access): a) List name and email for all full-time drivers who are younger than 25 years old, sort in ascending order. b) List Name and Location of all bus stops, sort in alphabetical order c) List the number of Bus Stops in the route named 'Bursley-Baits' d) List the maximum salary of drivers based on their type, sort from highest to lowest. e) List the average age by type of driver and gender (i.e., full-time female, fulltime male, part-time female, part-time male, etc.), sort in descending order. f) List the name, gender and salary of the oldest 10 drivers. g) List the name and email of the 3 best paid male and female drivers who are between 21 and 35 years old. Problem 1. Design a database for UM Blue Bus system. You need to include the following information: Bus Drivers: Driver Name, Age, Gender, Email, Employment Type (part-time, fulltime, student, etc.), Salary. Buses: License Plate, Vehicle Type, Model Year Stops Information: Stop Name, Location Route Information: Route Name, Number of Stops Shift Information: Route, Bus, Driver, Day, Start Time, End Time Also, take into account that a Stop can be used by multiple routes and a route can have multiple stops, so you may need to have an additional table to show this relationship You can create primary keys when necessary (e.g. DriverID, BusID, etc.). Identify the primary keys. Draw an ERD of this database. Show the relationships in your ERD
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started