Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. E.23 Code an SQL statement to create a view named DogBreedView that shows PetID, PetName, PetBreed, and PetDOB for dogs.
  2. E.24 Code an SQL statement that displays the data in DogBreedView, sorted alphabetically by PetName.
  3. E.27 Code an SQL statement to create a view named PetOwnerView that shows PetID, PetName, PetType, OwnerID, OwnerLastName, OwnerFirstName, OwnerPhone, and OwnerEmail.
  4. E.28 Code an SQL statement that displays the data in PetOwnerView, sorted alphabetically by OwnerLastName and PetName.
  5. E.46 Code an SQL statement to create a view named CourseEnrollmentView that shows CourseNumber, Course, CourseDate, CustomerNumber, CustomerLastName, CustomerFirstName, and Phone.
  6. E.48 Code an SQL statement that displays the data in CourseEnrollmentView for the Beginning Oils course starting 10/15/17. Sort the data alphabetically by CustomerLastName.
  7. E.49 Code an SQL statement to create a view named CourseFeeOwedView that shows CourseNumber, Course, CourseDate, CustomerNumber, CustomerLastName, CustomerFirstName, Phone, Fee, AmountPaid, and the calculated column (Fee – AmountPaid), renamed as AmountOwed.
  8. E.51 Code an SQL statement that displays the data in CourseFeeOwedView, sorted alphabetically by CustomerLastName for any customer who still owes money for a course fee.
  9. E.58 Create and run an SQL SELECT statement that answers the question: “What products were available for sale (by either catalog or Web site) in 2016 and 2017?” Sort your result by SKU.
  10. E.59 Create and run an SQL SELECT statement that answers the question: “What products were available for sale (by either catalog or Web site) in 2015, 2016, and 2017?” Sort your result by SKU.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement