Advance database

Bishalmandal
  • 3 years ago
  • 10
files (2)

WINCarRentals.xlsx

Main

Vehicle
Rego Description Make Model Year Value EngineCapacity Odometer PurchaseDate VehicleTypeID
123WIN Blue, Semi Auto, Central Locking, Leather Int Toyota Camry 2020 27990 4 28902 02-Oct-20 1
345WIN Navy, Manual, Cruise, Central Locking, A/C, 6 CD Nissan Pathfinder 2017 75000 4 27429 05-Sep-17 3
456WIN Red, Cruise, Auto, 6 CD, Central locking Holden Astra 2021 24990 1.8 16904 06-Nov-21 2
789WIN Green, Auto, Leather Int, 6 CD, Wood Feature, Cruise Ford Falcan 2015 87545 4 2600 15-Dec-15 1
134LSK Golden, Semi Auto, Cruise, CD, A/C, Central locking Mitsubishi Lancer 2015 25300 3.8 1800 14-Feb-15 1
234LSK White, Auto, Cruise, 7 Seater, CD Toyota Tarago 2019 35900 2.4 7500 12-Jan-19 5
567LSK White, Auto, Cruise, 6 CD, Central Locking Ford Falcon Forte 2021 29799 4 5910 15-Feb-21 1
VehicleType
VehicleTypeID VehicleType Charge
1 Sedan 75
2 Hatchback 50
3 4 Wheel Drive 110
4 Station Wagon 60
5 People Mover 110
6 Coupe 70
Insurance
Insurance_ID Insurance_Type Price
N No Cover 0
P Partial Cover 20.99
F Full cover 35.5
PayType
Payment_ID Pay_Type
1 Credit Card
2 Cash
3 Cheque
4 Eftpos

Customers

CustomerID Lastname Firstname Address Postcode State Phone MemberDate

Rental

RentalID BookingDate BookingMethod Checkout RentDays Checkin DueDate OdometerIn Damage PaymentType Rego CustomerID InsuranceID

Rental Charge

RentalID Rent

ICT214-AdvancedDatabase-Assessment-03-V01.docx

Bachelor of Information Technology

ICT214 – Advanced Database

Assessment 03: Group Database Design Project

Due date:

2nd October 2023

Weighting:

40%

Length and Format:

A word document and MySQL files

Assessment Details:

Students in groups of four 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

b

Model, design and implement complex database structures (including databases distributed over a network) using a relational database management system (RDBMS)

C

Apply advanced SQL programming (often as a stored procedure) to fulfil complex data/information retrievals from an RDBMS

d

Develop and apply scripts and configure web server software as part of a Web database

e

Examine how modern RDBMSs manage multiple concurrent user access to a database as well as how these RDBMSs manage online or real-time backup and recovery processes

Marking Criteria

Please refer to Marking Rubric on Canvas

Assignment Requirements

Your group has 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

Students must submit their assignments through CANVAS shell. Email submissions will not be accepted.

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.

All these files must be placed in a zip file and must be submitted through CANVAS.

** One submission per group is enough. All the group members do not need to submit the same files **

Wentworth Institute of Higher Education, 302 Elizabeth Street, Sydney http://www.win.edu.au/ Higher Education CRICOS code: 03279M

image1.png