Question: a . Write a view named InvoiceBasic that displays three columns: VendorName, InvoiceNumber, and InvoiceTotal. b . Then, write a separate SELECT query that shows
a Write a view named InvoiceBasic that displays three columns: VendorName,
InvoiceNumber, and InvoiceTotal.
b Then, write a separate SELECT query that shows all the columns in the view, sorted by
VendorName, where the last letter of the vendor name is R S or T Use LIKE to do this.
a Write an updatable view named VendorAddress that displays the VendorID, both
address columns, and the city, state, and zip code columns for all vendors.
b Write a separate SELECT query to show the result where VendorID
c Write an UPDATE statement to change the VendorAddress column of the vendor
with id to contain Ste instead of it being part of VendorAddress column. Keep it
simple. Update through the VendorAddress view.
d Rerun the query you wrote in b to see if the update has been made.
Write a SELECT query that shows all the columns for the catalog view that displays
information about foreign keys. This requires you to go into System Views and find the
stored view sysforeignkeys and write the query. The main goal of this exercise is for
you to learn about System Views.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
