2. PROBLEM STATEMENT
• The motive is to design the data management system for vehicle
rental company
• In the first part for the conceptual design,we made ER diagram to
detail the entities and their relationships
• In the second part,the database schema was designed and tested
some sample sequel queries
• Also,implemented relational algebra for the same
• In the final part, a web portal was designed using CGI and Apache
• Additionally for the bonus section,a sample query was benchmarked
for the non indexed against the indexed table
3. PART 1 – ER DESIGN & DIAGRAM
qER Diagram has following entities
§ Employee
§ Customer
§ Company
§ Vehicle
§ Manager
qWeak Entities
§ BankAccount
§ Rent Log
§ Booking
qRelationships between Entities
• COMPANY has EMPLOYEE (many)
• EMPLOYEE has BANKACCOUNT
(one)
• EMPLOYEE managed by MANAGER
(one)
• EMPLOYEE interact with CUSTOMER
• CUSTOMER books onlineVEHICLE
• CUSTOMER Rents VEHICLE
• VEHICLE has RENT LOG (one)
• MANAGER allows to appear online
VEHICLE
• EMPLOYEE books on behalf of CID
VEHICLE
6. PART 3 – RENTAL WEB PORTAL
• UsingApache CGI,Python,HTML and CSS created aWeb portal
• Ability to Add an employee,vehicle
• Ability to search for an employee using name,address or role
• Covered edge cases with pertinent error codes
8. BONUS - BENCHMARKING
• Evaluated performance of the DB by running a particular query
multiple times and evaluating the time taken
• Subsequently,added an index on the ’age’ column of the EMPLOYEE
table, and recorded the result.
• Between the two test scenarios,there was a decrease in run time by
20% between the non-indexed and the indexed table.