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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
The width of a piece of rectangular land is 5m shorter rhan 1/3 of its length .find the width of the land if the length is 60m,150m.
Answers: 1
question
Computers and Technology, 22.06.2019 22:10
Asequential circuit contains a register of four flip-flops. initially a binary number n (0000 ≤ n ≤ 1100) is stored in the flip-flops. after a single clock pulse is applied to the circuit, the register should contain n + 0011. in other words, the function of the sequential circuit is to add 3 to the contents of a 4-bit register. design and implement this circuit using j-k flip-flops.
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
In what way is your social media footprint related to your digital id
Answers: 1
question
Computers and Technology, 24.06.2019 19:50
How to unblock on chrome book? ?
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
question
Mathematics, 29.03.2021 22:00
question
English, 29.03.2021 22:00
question
Mathematics, 29.03.2021 22:00
Questions on the website: 13722363