Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need example code in MYSQL: 1. Define a view named SCRIBNER. It consists of the book code, title, type, and price for every book

I need example code in MYSQL:

1. Define a view named SCRIBNER. It consists of the book code, title, type, and price for every book published by the publisher whose code is SC.

a. Write and execute the CREATE VIEW command to create the SCRIBNER view.

b. Write and execute the command to retrieve the book code, title, and price for every book with a price of less than $15.

c. Write and execute the query that the DBMS actually executes. d. Does updating the database through this view create any problems? If so,

what are they? If not, why not?

2. Define a view named NONPAPERBACK. It consists of the book code, title, publisher name, and price for every book that is not available in paperback.

a. Write and execute the CREATE VIEW command to create the NONPAPERBACK view.

b. Write and execute the command to retrieve the book title, publisher name, and price for every book in the NONPAPERBACK view with a price of less than $20.

c. Write and execute the query that the DBMS actually executes. d. Does updating the database through this view create any problems? If so,

what are they? If not, why not?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions