SQL Performance Tuning Assignment

posted in: Research Paper | 0

Part I

SQL Performance Tuning

In this assignment, you will learn about solutions and strategies for improving the performance of SQL queries.

Using the South University Online Library or the Internet, research the following:

  • SQL performance tuning
  • Programming with SQL

Based on your research and understanding, complete the following tasks:

  • Evaluate the given statement and discuss some approaches to address the issue: “We spent several million dollars a few years ago to create a database for managing our business. In the past several months, we acquired a new business but its data does not fit in our current system. What can we do to solve this problem?”
  • Discuss some possible solutions and strategies for improving the performance of SQL queries and their ability to provide data to users:
    • Identify the performance or usability issues that need to be addressed.
    • Outline a possible solution for each issue. Use supporting examples, if necessary.
    • Briefly describe how you would implement your solutions.
  • Discuss how cardinality affects database design? Provide an example to support your answer.
  • Discuss the importance of triggers and some risks associated with their use.
  • In your opinion, state when using triggers makes the most sense. Why? When should you not use them? Why?

Part II

This assignment has two parts: A&B

A- Lab

For the hands-on lab, you will submit a Microsoft Access database and a Microsoft Word document with SQL statements for the following:

  • Create a new Microsoft Access database named Travel. Note that Microsoft Access does not support the use of SQL scripts to create databases. In Microsoft Word, type the SQL script that you would have used to create the database.
  • Now, add a table named Car_Rental to the Travel database. Make sure that you include the Car_Rental_ID field whose datatype is AutoNumber. In Microsoft Word, type the SQL script that you would have used to create the table. Include the following fields:
    • Car_Rental_ID (AutoNumber, primary key, required)
    • Agency (Text(25), required)
    • Size (Text(25), required)
    • Make (Text(12), required)
    • Model (Text(25))
    • Daily_Cost (Currency)
  • Write INSERT statements for adding the following data to the new table:

 

Agency Size Make Model Daily_Cost
Avis Mid Ford 89.95
Avis Full Ford Taurus 112.95
Hertz Comp Chev Cavalier 69.95
Hertz Mid Chev Malibu 84.99
Hertz Full Chev Impala 114.99
National Mid Chrys Stratus 77.95
National Full Chrys Intrepid 109.95
  • Verify the values inserted by using a query.
  • Display each distinct agency (each agency only once).
  • Display the average cost of a Chrysler rental.
  • Display the total count of cars available.
  • Display the highest-priced vehicle.
  • Display each unique agency with the average car price for that agency.

Part B

Creating a Database

Continuing with the project you worked on for Weeks 1, 2 and 3, this week, complete the following tasks:

  • In Microsoft Access, create the database and tables that you identified in W3 Assignment 2. In Microsoft Word, write the SQL statements to create the database and tables.
  • Write SQL statements to populate the tables. Run the SQL statements in Microsoft Access for populating the tables.
Assignment Deliverable

After you complete the lab and course project, collate the information from both in a 3- to 4-page report in a Microsoft Word document. Include the SQL scripts in the Microsoft Word document. Include the Travel database as a separate attachment.

 

Last Updated on