Consider a simplified version E-R model on the car rental activity, where you only deal with three relations Customer, Rental and Car (ignore all other relations) based on the ER model provided for assignment 1 sample solution. Using MySQL Workbench to create a database with the above three relations, include specifying the primary key and foreign
key where it is necessary, and populate the necessary sample data,For on-campus students, demonstrate your implementation as required above in Week 10.
Week 11 or Week 12 tutorial time to your local tutor during the scheduled tutorial session. You don’t need to submit a separate file on this part.For distance students, include the database/or data file of your implementation in a zip file and email it to the Unit coordinator by the end of Week 11.
Important points
• You must work individually on this assignment.
• The model solution to this assignment will be released approximately two (2) weeks after the due date.
• Assignments that are submitted after the release of the model solution will receive zero marks.
• You must state in your word document the details of all materials and sources that you used to complete this assignment. This may be as simple as ‘This assignment was completed using only the COIT 20247 unit materials’.
• Extension requests (by filling in an online form) should be submitted before the assignment due date.
• Before submitting your assignment, review the marking criteria provided on the last page of this document. Ensure that all the criteria are addressed in your submission.
• Penalties related to late submission and plagiarism will be applied as per University policy.
a) Relations in 3NF
Customer (customerID, firstName, lastName, birthdate, address, phone, licenseNO, customerTye)
Individual (CustomerID, personalLifeInsured)
Corporate (customerID, organizationName, ABN, travelSpecialDeal )
Booking (ReservationID, description, bookingDate, customerID, employeeID, categoryID)
Rental (rentalID, startDate, endDate,cost, pickupLocationID, DropOffLocationID, regNO, reservationID)
Location ( LocationID, locationName, address, isMainOffice)
Car (regNo, make, model, numOfSeats, manufacturedYear, carImage, categoryID)
Vehicle_Category ( CategoryID, categoryName, DailyHireRate)
Insurance (policyNO, insuranceName, premium, startDate, expiryDate,regNO)
Employee (EmployeeID, firstName, lastName, birthDate, phone,skillLevel, annnualSalary,locationID)
Customer (customerID, firstName, lastName, birthdate, address, phone, licenseNO, customerTye)
Functional dependencies:
(CustomerID) à (firstName, lastName, birthdate, address, phone, licenseNO, customerTye)
Demonstration of normalization
Location ( LocationID, locationName, address, isMainOffice)
Functional dependencies:
(locationID)àlocationName, address, isMainOffice)
Demonstration of normalization
This section discusses my experience while undertaking the assignment. My experience with the task was both informative and challenging. While doing the assignment I discovered two important aspects while undertaking the task. These are;
The task was not smooth throughout the way as I experienced some challenges while undertaking the task. Some of the challenges include;
CREATE DATABASE IF NOT EXISTS `car_rental`;
CREATE TABLE `Car` (
`regNO` VARCHAR(6) NOT NULL,
`make` VARCHAR(255),
`model` VARCHAR(255),
`numOfSeats` INTEGER,
`ManufacturedYear` INTEGER,
`carImage` VARCHAR(255),
`categoryID` INTEGER
INSERT INTO `Car` (`regNO`, `make`, `model`, `numOfSeats`, `ManufacturedYear`, `carImage`, `categoryID`) VALUES (‘abc123’, ‘Toyota’, ‘Noah’, 7, 2018, ‘image1.jpg’, 1);
INSERT INTO `Car` (`regNO`, `make`, `model`, `numOfSeats`, `ManufacturedYear`, `carImage`, `categoryID`) VALUES (‘acd321’, ‘Nissan’, ‘Vanette’, 2, 2017, ‘image2.jpg’, 2);
INSERT INTO `Car` (`regNO`, `make`, `model`, `numOfSeats`, `ManufacturedYear`, `carImage`, `categoryID`) VALUES (‘asd456’, ‘Chevrolet’, ‘Camaro’, 5, 2016, ‘image3.jpg’, 4);
INSERT INTO `Car` (`regNO`, `make`, `model`, `numOfSeats`, `ManufacturedYear`, `carImage`, `categoryID`) VALUES (‘qwe123’, ‘Mitsubishi’, ‘Pajero’, 5, 2015, ‘image4.jpg’, 5);
CREATE TABLE `Customer` (
`customerID` INTEGER NOT NULL,
`firstName` VARCHAR(255) NOT NULL,
`lastName` VARCHAR(255) NOT NULL,
`birthDate` DATETIME,
`address` VARCHAR(255),
`phone` VARCHAR(255),
`licenseNO` VARCHAR(255),
`customerType` VARCHAR(255)
INSERT INTO `Customer` (`customerID`, `firstName`, `lastName`, `birthDate`, `address`, `phone`, `licenseNO`, `customerType`) VALUES (1, ‘Peter’, ‘Griffin’, ‘2000-07-05 00:00:00’, ‘1st av rhode island’, ‘+44 343343 324’, ‘23434324’, ‘individual’);
INSERT INTO `Customer` (`customerID`, `firstName`, `lastName`, `birthDate`, `address`, `phone`, `licenseNO`, `customerType`) VALUES (2, ‘Lois’, ‘Griffin’, ‘2990-06-12 00:00:00’, ‘2nd av rhode island’, ‘+4334343 344’, ‘433434 32’, ‘corporate’);
INSERT INTO `Customer` (`customerID`, `firstName`, `lastName`, `birthDate`, `address`, `phone`, `licenseNO`, `customerType`) VALUES (3, ‘Stewie’, ‘Griffin’, ‘2002-07-10 00:00:00’, ‘3rd av rhode island’, ‘+324 32434’, ‘4234324’, ‘individual’);
CREATE TABLE `Rental` (
`rentalID` INTEGER NOT NULL,
`startDate` DATETIME,
`endDate` DATETIME,
`cost` DECIMAL(19,4),
`pickupLocationID` INTEGER,
`dropOffLocationID` INTEGER,
`regNO` VARCHAR(6),
`reservationID` INTEGER
INSERT INTO `Rental` (`rentalID`, `startDate`, `endDate`, `cost`, `pickupLocationID`, `dropOffLocationID`, `regNO`, `reservationID`) VALUES (1, ‘2018-09-13 00:00:00’, ‘2018-09-14 00:00:00’, 435, 1, 1, ‘abc123’, 1);
INSERT INTO `Rental` (`rentalID`, `startDate`, `endDate`, `cost`, `pickupLocationID`, `dropOffLocationID`, `regNO`, `reservationID`) VALUES (2, ‘2018-09-14 00:00:00’, ‘2018-09-17 00:00:00’, 4321, 2, 2, ‘qwe123’, 2);
INSERT INTO `Rental` (`rentalID`, `startDate`, `endDate`, `cost`, `pickupLocationID`, `dropOffLocationID`, `regNO`, `reservationID`) VALUES (3, ‘2018-09-14 00:00:00’, ‘2018-09-22 00:00:00’, 2330, 3, 3, ‘abc123’, 3);
INSERT INTO `Rental` (`rentalID`, `startDate`, `endDate`, `cost`, `pickupLocationID`, `dropOffLocationID`, `regNO`, `reservationID`) VALUES (4, ‘2018-09-21 00:00:00’, ‘2018-09-22 00:00:00’, 300, 1, 1, ‘abc123’, 4);
Essay Writing Service Features
Our Experience
No matter how complex your assignment is, we can find the right professional for your specific task. Contact Essay is an essay writing company that hires only the smartest minds to help you with your projects. Our expertise allows us to provide students with high-quality academic writing, editing & proofreading services.Free Features
Free revision policy
$10Free bibliography & reference
$8Free title page
$8Free formatting
$8How Our Essay Writing Service Works
First, you will need to complete an order form. It's not difficult but, in case there is anything you find not to be clear, you may always call us so that we can guide you through it. On the order form, you will need to include some basic information concerning your order: subject, topic, number of pages, etc. We also encourage our clients to upload any relevant information or sources that will help.
Complete the order formOnce we have all the information and instructions that we need, we select the most suitable writer for your assignment. While everything seems to be clear, the writer, who has complete knowledge of the subject, may need clarification from you. It is at that point that you would receive a call or email from us.
Writer’s assignmentAs soon as the writer has finished, it will be delivered both to the website and to your email address so that you will not miss it. If your deadline is close at hand, we will place a call to you to make sure that you receive the paper on time.
Completing the order and download