Write a query to display the cars that are currently on rent

Assignment Help Computer Engineering
Reference no: EM133531927

Homework: Database Design Project

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.

Learning Outcome

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

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

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

4. 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

Homework 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 homework document. Have a look at it before you start working on the homework.

The entities required for the database are as follows:

1) Customer: customerId, lastName, firstName, address, postcode, state, phone, memberDate.

2) Insurance: insuranceId, insuranceType, price

3) Vehicle:rego, description, make, model, carYear, value, engineCapacity, odometer, purchaseDate, vehicleTypeId.

4) Rental: rentalId, bookingDate, bookingMethod, checkout, rentDays, checkin, dueDate, odometerIn, damage, paymentId, rego, customerId, insuranceId.

5) VehicleType: VehicleTypeID, VehicleType, Charge.

6) RentalCharge: RentalID, Rent.

7) PayType: Payment_ID, Pay_Type.

Along with the database files you were asked to submit other documentation as listed below:

Task A:

I. ER Diagram in Crows Foot Notation. (Draw using Draw.io)

1. Primary keys and foreign keys must be identified.

2. All attributes must be identified.

3. All relationships (both directions) must be clearly listed.

II. Data dictionary (create in Excel)

III. Any other required information.

Task B:

The following SQL files must be submitted.

I. SQL Statements to create the database and insert at least 5 records in every table.

1. Create a database called "winCarRentals" that has all the above listed tables.

2. Insert all the data shown in the excel file.

3. Create a minimum of 5 customers. You four people and me.

4. Create at least 3 rentals.

II. SQL statements to incorporate functions and triggers in the database.

1. When data is inserted in the customer table, CustomerMemberDatemustbebeforeorequaltothecurrentdate.

2. When data is inserted in the vehicle table, Vehicle's PurchaseDate, must be before or equal to the current date.

3. When data is inserted in the rental table, rental booking date, checkoutdate must be after or equal to the current date.

4. 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.

III. SQL statements to run a number of report queries.

1. Write a query to print the list of customers who did not rent a vehicle.

2. Write a query to display the cars that are currently on rent.

Reference no: EM133531927

Questions Cloud

Why is Scripture from the Bible so Inspiring : Why is Scripture from the Bible so Inspiring? How can Scripture transform a life? What is the purpose of teaching Scripture?
Explain how to handle it to avoid being sued the company : Can you help me on this? Can you make and what is the risk management involved in this below topic? and explain how to handle it to avoid being sued the company
Analyse the role of the board in the assessment of strategy : Analyse the role of the board in the assessment of strategy and risk, and the way in which this expertise can be better utilised
Describe which of the plans would you approve and why : In your initial post, describe which of these plans would you (as the CEO) approve and why? Be sure to justify your selection with technical details.
Write a query to display the cars that are currently on rent : ICT 214- 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.
Explain benefits to agility and how agility could benefit : Explain benefits to agility and how agility could benefit your organization or an organization of your choice. Discuss how the DMAIC process can be utilized
List the selection of 3 development tools and platforms : List the selection of 3 development tools and platforms should be commonly used in the industry. List any helpful websites for finding guidelines for developing
Importance of service and about what the call to service : The course materials provide food for thought about meaning and importance of service and about what the call to service, in context of the Franciscan values
Describe a time when there was damaging conflict on a team : describe a time when there was damaging conflict on a team of which you were a member. This conflict may have been suppressed, not directly addressed

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd