Write a query that displays all of the rows in the vehicle


Assignment

SQL Developer:

Open script in the Editor and press F5 to run the script:

In SQL*Plus:

First open a SQL*Plus session. You can do this by opening a command prompt. Then type sqlplus / to connect to the database (I'm assuming you have created a user in your database prior to working with this script):

If you don't have a user, logon with the sysdba or system account and create one:
CREATE USER IDENTIFIED BY ;
GRANT DBA TO ;
GRANT CREATE SESSION TO ;
GRANT RESOURCE TO ;
Then type the following command to run your script from the directory where you saved it:

Build a working sample of Huffman Trucking's fleet truck maintenance database.

Use the CREATE table statement to create a table for each entity for Huffman Trucking's fleet truck maintenance database.

Use the INSERT statement to populate the tables with realistic sample data, demonstrating each relationship in your entity relationship diagram. Include at least two entries for each table.

Use the SELECT statement to create the following queries:

• Create a simple query for each table that returns all of the columns and all of the rows for each table.

• Write a query that displays each part that has been purchased by Huffman Trucking Company. For each part, also retrieve its parts catalog information from the parts catalog table and vendor information from the vendor table.

• Write a query that displays all of the rows in the vehicle maintenance table. For each vehicle maintenance row, join the corresponding information from the maintenance descriptions table and vehicles table.

• Write a query that displays each row in the maintenance work order table. For each row in the maintenance work order table, join the corresponding information from the maintenance description table.

• Write a query that counts the number of maintenance work orders for each vehicle in the maintenance work order table. Display the vehicle column and the corresponding count of work orders for each vehicle.

Use Reporting Services to design and create a report on the parts purchasing history for Huffman Trucking Company. The report should display all parts purchasing history including manufacturer and vendor information, parts catalog information, and associated parts inventory issues, and all parts inventory purchases.

Format the report to present to senior management at Huffman Trucking.

Solution Preview :

Prepared by a verified Expert
PL-SQL Programming: Write a query that displays all of the rows in the vehicle
Reference No:- TGS01674900

Now Priced at $40 (50% Discount)

Recommended (98%)

Rated (4.3/5)