Cash-back offer from April 23rd to 27th, 2024: Get a flat 10% cash-back credited to your account for a minimum transaction of $50.Post Your Questions Today!

Question DetailsNormal
$ 14.99

Premiere Products Exercise Chapter 4 solution correct answers

Question posted by
Online Tutor Profile
request

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 description, 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 character 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 fee 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.

Available Answer
$ 14.99

[Solved] Premiere Products Exercise Chapter 4 solution correct answers

  • This solution is not purchased yet.
  • Submitted On 13 Jul, 2015 11:16:00
Answer posted by
Online Tutor Profile
solution
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. SQL STATEMENT CREATE VIEW LargeSlip SELECT MarinaNum, SlipNum, RentalFee, BoatName, OwnerNum FROM MarinaSlip WHERE Length= 40; ACCESS VIEW LargeSlip MarinaNum SlipNum RentalFee BoatName OwnerNum 1 A1 $3,800.00 Anderson II AN75 1 A2 $3,800.00 Our Toy EL25 1 A3 $3,600.00 Escape KE22 2 5 $4,200.00 Axxon II NO27 2 6 $4,200.00 Karvel TR72 2. Create a view named InitialService using the slip ID, category number, category description, and estimated hours for every service request for which the spent hours are zero. Display the data in the view. SQL STATEMENT CREATE VIEW InitialService SELECT SlipId, CategoryNum, Description, EstHours FROM ServiceRequest WHERE SpentHours= 0; ACCESS VIEW InitialService SlipID CategoryNum Description EstHours 5 4 Fuse on port motor blown on two occasions. Diagnose and repair. 2 4 1 Oil change and general routine maintenance (check fluid levels, clean sea strainers, etc.). 1 1 2 Engine oil level has been dropping drastically. Diagnose and repair. 2 11 4 Electric-flush system periodically stops functioning. Diagnose and repair. 3 6 2 Engine overheating. Loss of coolant....
Buy now to view the complete solution
Other Similar Questions
User Profile
Exper...

Premiere Products Exercise Chapter 5 | Complete Solution

The following exercises are based on the Premiere Products database.
1. Using your knowledge of Premiere Products, determine the functional dependencies that exist in the following table. After determining the functio...

User Profile
Exper...

Premiere Products Exercise Chapter 4 | First 10 questions solved

This Tutorial is rated A+ previously,if you have any questions regarding this tutorial than you can contact me.

...
User Profile
Exper...

Premiere Products Exercise Chapter 2 | Complete Solution

In the following exercises, you will use the data in the Premiere Products database shown in Figure 2-1. (If you use a computer to complete these exercises, use a copy of the Premiere Products database so you will still ha...

User Profile
Exper...

Premiere Products Exercise Chapter 1 | Complete Solution

Communication time = access delay +(data volume / transmission rate)
Communication time  = 2.5 + (5000 * 1000 /50000)
    = 2.5 + (5000000/50000)
    = 2.5 + (100) =&nbs...

User Profile
Exper...

Premiere Products Exercise Chapter 9 | Complete Solution

1. Fragment the Customer table so that customers of rep 20 form a fragment named CustomerRep20, customersof rep 35 form a fragment named CustomerRep35, and customers of rep 65 form a fragment named CustomerRep65. (Include ...

The benefits of buying study notes from CourseMerits

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35