Computers and Technology
Computers and Technology, 24.12.2019 18:31, kenrick99

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 09:30, shadowsnake
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible. restrictions: branches or loops should not be used. the code must use the internal mod and logical functions. hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible. this is matlab
Answers: 2
image
Computers and Technology, 23.06.2019 15:00, Siris420
Plz ( which is an example of a good url?
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, Alexaisokay1
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, BilliePaul95
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
Do you know the correct answer?
Sql code1. create a view named penguinbooks. it consists of the book code, book title, book type, an...

Questions in other subjects:

Konu
English, 03.09.2020 20:01
Konu
Mathematics, 03.09.2020 20:01
Konu
Mathematics, 03.09.2020 20:01