Question: Part 3 Question: Using the KCT design shown below, code SQL statements for the following. KCT _CUSTOMER(CustomerID, FirstName, LastName, Street, City, State, Zip, Phone) KCT
Part 3 Question: Using the KCT design shown below, code SQL statements for the following.
KCT _CUSTOMER(CustomerID, FirstName, LastName, Street, City, State, Zip, Phone)
KCT _RENTAL(RentalID, RentalDate,NumberOfDays, RentalAmount, Deposit, Tax, TotalAmount, CustomerID, ReturnDate, AmountReturned)
KCT _LINEITEM(RentalID, CostumeID, Rate, Deposit)
KCT _COSTUMETYPE(TypeID, Description, Photo, DailyRentalRate, DepositRate, ReplacementCost)
KCT _COSTUME(CostumeID, Size, Availability, DatePurchased, CostumeType)
Question:
A. List the costumeID, size, and description (from COSTUMETYPE) for all costumes.
B. List the costumeID ,size and description for all costumes that have star wars in the description.
C. The same as above, but only include costumes that have been rented at least one time on a line item.
D. The same as above, but only include costumes that have been rented in the last 30 days.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
