Premiere Products Exercise Chapter 4 Solution Correct Answers
- Information Technology
- 6 pages
- Shared May 2025
Chapter 4 exercise answers for Premiere Products database.
Preview 2 of 6 pages
See the first 2 pages exactly as they appear in the document.
Page 1 Read page 1 as text
Premiere Products Exercise Chapter 4 Solution Correct Answers Using the week4 database file located in the course materials section of the online classroom to complete the Alexamara Maria Group Case on page 146. Complete 1, 2, 3, 4, and 6, make sure that you provide "SQL statements" 1. Create a view named LargeSlip using the data in the MarinaNum, SlipNum, RentalFee, BoatName, and OwnerNum columns in the MarinaSlip table for those slips with lengths of 40 feet. Display the data in the view. 2. Create a view named InitialService using the slip ID, category number, category d escription, and estimated hours for every service request for which the spent hours are zero. Display the data in the view. 3. Create a view named TypesOfBoats using the boat type and a count of all boats of each type. Display the data in the view. 4. Create the following indexes. If it is necessary to name the index in your DBMS, use the indicated name. a. Create an index named BoatIndex on the BoatName field in the MarinaSlip table. b. Create an index named BoatIndex2 on the OwnerNum field in the MarinaSlip table. c. Create an index named BoatIndex3 on the Length and BoatName fields in the MarinaSlip table and list the lengths in descending order. 5. Drop the BoatIndex3 index. 6. Assume the MarinaSlip table has been created but there are no integrity constraints. Create the necessary integrity constraints so the rental fee must be less than $5,000 and the slip length must be 25, 30, or 40 . 7. Ensure that the following are foreign keys (that is, specify referential integrity) in the Alexamara database. a. MarinaNum is a foreign key in the MarinaSlip table. b. OwnerNum is a foreign key in the MarinaSlip table. c. CategoryNum is a foreign key in the ServiceRequest table. d. SlipID is a foreign key in the SerivceRequest table. 8. Add to the MarinaSlip table a new character field named FeePaid that is one chara cter in length. On all records, change the value for the FeePaid field to Y. 9. Change the FeePaid field in the MarinaSlip table to N for the slip whose slip ID is 4. 10. Change the length of the BoatName field in the MarinaSlip table to 60. 11. Write a stored procedure that will change the rental fee of a slip with a given slip ID . How would you use this stored procedure to change the rental fee of slip ID 3 to 3,700.00? 12. Assume the Owner table contains a column called TotalRental that represents the total rental fee for all slips rented by that owner. Write the code for the following triggers following the style shown in the text. a. When inserting a row in the MarinaSlip table, add the rental fee to the total rental for the appropriate owner. b. When updating a row in the MarinaSlip table, add the difference between the new rental fee and the old rental f ee to the total rental for the appropriate owner. c. When deleting a row in the MarinaSlip table, subtract the rental fee from the total rental for the appropriate owner.
Page 2
4 more pages in the full document
Unlock it once and it stays in your library, ready to chat with or turn into flashcards.
Unlock the full documentMore Information Technology study materials
See all
Exam GuidesTest Bank for Managing and Using Information Systems: A Strategic Approach, 7th Edition (Chapters 1-13)
Information Technology
452 pages149downloadsFeb 2025
Exam GuidesTest Bank for Essentials of MIS, 12th Edition
Information Technology
342 pages146downloadsFeb 2025
Exam GuidesA+ Guide to Hardware, 9th Edition Test Bank
Information Technology
116 pages142downloadsFeb 2025
Textbook GuidesSolution Manual for Essentials of System Analysis and Design, 4th Edition
Information Technology
282 pages140downloadsFeb 2025
Textbook GuidesGuide To Networking Essentials, 7th Edition Solution Manual
Information Technology
48 pages139downloadsFeb 2025
Past Exams2023-2024 SOPHOS FIREWALL V19.5 Practice Exam with Answers (75 Solved Questions)
Information Technology
7 pages134downloadsFeb 2025
Class NotesLecture Notes for CCNP Enterprise: Core Networking (ENCOR) v8 Lab Manual, 2nd Edition
Information Technology
1089 pages123downloadsFeb 2025
Class NotesLecture Notes for Adobe XD Classroom in a Book (2020 release)
Information Technology
66 pages118downloadsFeb 2025
Study this document with CramX
Once it is in your library, every tool can work from it.

