subject

Sql code1. create a view named penguinbooks. it consists of the book code, book title, book type, and book price forevery book published by penguin usa. display the data in the view.2. create a view named paperback. it consists of the book code, book title, publisher name, branch number, copynumber, and price for every book copy that is available in paperback. display the data in the view.3. create a view named bookauthor. it consists of the book code, book title, book type, author number, first name, last name, and sequence number for each book. 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 bookindex1 on the publishername field in the publisher table. b. create an index named bookindex2 on the type field in the book table. c. create an index named bookindex3 on the bookcode and type fields in the book table and list the bookcodes in descending order.5. drop the bookindex3 index.6. specify the integrity constraint that the price of any book must be less than $90.7. ensure that the following are foreign keys (that is, specify referential integrity) within the henry books database. a. publishercode is a foreign key in the book table. b. branchnum is a foreign key in the inventory table. c. authornum is a foreign key in the wrote table.8. add to the book table a new character field named classic that is one character in length.9. change the classic field in the book table to y for the book titled the grapes of wrath.10. change the length of the title field in the book table to 60.11. what command would you use to delete the books table from the henry books database? (do not delete thebook table.)12. write a stored procedure that will change the price of a book with a given book code and quality. how wouldyou use this stored procedure to change the price of any copy of book 1351 whose quality is excellent to$22.95? 13. assume the branch table contains a column called totalvalue that represents the total price for all books at thatbranch. following the style shown in the text, write the code for the following triggers. a. when inserting a row in the copy table, add the price to the total value for the appropriate branch. b. when updating a row in the copy table, add the difference between the new price and the old price to thetotal value for the appropriate branch. c. when deleting a row from the copy table, subtract the price on the record being deleted from the total valuefor the appropriate branch.14. if you are using access 2010, complete the following steps. a. add the totalvalue field to the branch table. create and run a query on the copy table to determine theappropriate values for this field, and then update the branch table with these values. b. create a data macro associated with the after insert event for the copy table to implement the trigger instep 13a. test the data macro by adding a record to the copy table and ensuring that the correspondingbranch’s total value is updated correctly.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 02:50, brianna4455
Which of the following had the greatest influence on opening the internet to the generly public
Answers: 1
image
Computers and Technology, 22.06.2019 23:50, Crull5999
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
image
Computers and Technology, 23.06.2019 10:30, badpotterchris
How would you categorize the software that runs on mobile devices? break down these apps into at least three basic categories and give an example of each.
Answers: 1
image
Computers and Technology, 23.06.2019 18:00, fordkenae
Which is a possible benefit of having a good credit history? having a checking account low interest rate on a car loan high interest rate on a credit card offer bankruptcy
Answers: 1
You know the right answer?
Sql code1. create a view named penguinbooks. it consists of the book code, book title, book type, an...

Questions in other subjects: