CTS2437 Final Exam SQL Server Administration

CTS2437 – Final Exam
Provide the SQL statements required to accomplish the following tasks.
#1 (10 points)
Create a database named FINAL_EXAM that you will then use for all remaining problems.

#2 (20 points)
Create the tables and appropriate constraints based on the following ER diagram. Use appropriate data types. Note that the size column should only accept S, M, or L. In addition the price column should have values greater than zero. All columns in both tables are required.

Catgeory Product


#3 (5 points)
Insert 3 rows in the Category table. The db is for a small shoe store, so use appropriate data for the description ( “Men”, “Women”, “Children”)
#4 (5 points)
Insert 3 Product records for each category in the product table. Use whatever data you see as appropriate.

#5 (5 points)
Use one statement to increase the price of all products in the Men category by 25%.

#6 (5 points)
Use one statement to delete all products for the Children category.

#7 (10 points)
Create and execute a view named EXAM_VIEW that shows all columns from both tables. Use an inner join.

#8 (10 points)
Create a database trigger named EXAM_TRIGGER that prevents a user from deleting a Product record on Tuesdays. Display an appropriate error message. Make sure to show that the trigger is working properly.

#9 (10 points)
Create a stored procedure named SP_EXAM that will be used to insert records into the Product table. Make sure to show that the procedure is working properly.

#10 (5 points)
Remove the EXAM_VIEW object from the database.

#11 (5 points)
Remove the SP_EXAM stored procedure from the database.

#12 (5 points)
Remove the EXAM_TRIGER database trigger from the database.

#13 (5 points)
Remove the FINAL_EXAM database.

Calculate your essay price
(550 words)

Approximate price: $

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)
Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more