You will design and implement a database that support a firm involved in various activities. It must have stored functions and procedures. The database can be accessed by a specific use
You will design and implement a database that support a firm involved in various activities. It must have stored functions and procedures. The database can be accessed by a specific user with suitable security and authentication facilities.
Requirement:
SQL
ER Diagram
MS Word
And Others
Assessment: Database Design Project
Due date: |
|||||||||
Weighting: |
60% |
||||||||
Length and Format: |
A word document and MySQL files |
||||||||
Assessment Details: |
You will design and implement a database that support a firm involved in various activities. It must have stored functions and procedures. The database can be accessed by a specific user with suitable security and authentication facilities. |
||||||||
Assessment addresses SLOs |
|
||||||||
Marking Criteria |
Assignment Requirements
You have started a small consulting services business in developing databases.
WIN Car rental services is a small business in Sydney. As the name suggests they are in the business of car rentals. They approached you to develop a database for their business. Till date they are using an excel file to manage their business. The excel file is attached with this assignment document. Have a look at it before you start working on the assignment.
The entities required for the database are as follows:
· Customer – customerId, lastName, firstName, address, postcode, state, phone, memberDate.
· Insurance – insuranceId, insuranceType, price
· Vehicle : rego, description, make, model, carYear, value, engineCapacity, odometer, purchaseDate, vehicleTypeId.
· Rental : rentalId, bookingDate, bookingMethod, checkout, rentDays, checkin, dueDate, odometerIn, damage, paymentId, rego, customerId, insuranceId.
· VehicleType : VehicleTypeID, VehicleType, Charge.
· RentalCharge: RentalID, Rent.
· PayType : Payment_ID, Pay_Type.
Along with the database files you were asked to submit other documentation as listed below:
Task 01:
A. ER Diagram in Crows Foot Notation. (Draw using Draw.io)
a. Primary keys and foreign keys must be identified.
b. All attributes must be identified.
c. All relationships (both directions) must be clearly listed.
B. Data dictionary (create in Excel)
C. Any other required information.
Task 02:
The following SQL files must be submitted.
A. SQL Statements to create the database and insert at least 5 records in every table.
· Create a database called “winCarRentals” that has all the above listed tables.
· Insert all the data shown in the excel file.
· Create a minimum of 5 customers. You four people and me.
· Create at least 3 rentals.
B. SQL statements to incorporate functions and triggers in the database.
· When data is inserted in the customer table, Customer MemberDate must be before or equal to the current date.
· When data is inserted in the vehicle table, Vehicle’s PurchaseDate, must be before or equal to the current date.
· When data is inserted in the rental table, rental booking date, checkoutdate must be after or equal to the current date.
· When a vehicle is checked in (the check-in filed is set to null when the record is created, when the vehicle is returned, check in date is set to the returned date), the rental must be calculated and stored in the rental charge table.
C. SQL statements to run a number of report queries.
· Write a query to print the list of customers who did not rent a vehicle.
· Write a query to display the cars that are currently on rent.
Submission Requirements
Deliverables:
A Microsoft Word document containing the ER diagram and the data dictionary to answer Task 1.
Three SQL files ready to be uploaded to the WAMP server to satisfy Task 2.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.