Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi , I want help to solve these tasks: 1- Create a view called 'retail_price' that returns the ISBN , retail price and a final

image text in transcribed

Hi , I want help to solve these tasks:

1- Create a view called 'retail_price' that returns the ISBN , retail price and a final column that contains the retail price increased by 35%. 2. Create a view called 'value_quote' that returns the total retail value (retail*stock) and total cost value (cost*stock) across all stock. 3. Create a view called 'profits_by_isbn' that returns the book title, isbn for each book along with the difference between the sum of the cost and retail values across all shipments for each book. The results should be grouped by book title and isbn.

Thanks

TABLE1: books book id| title | author_id | subject_id 7808 |The Shining 4513Dune 4267 2001 A Space Odvssey 4156 | 1866 2001 9 15 15 TABLE2: editions isbn book_id | edition publisher_id | publication type 591957-03-01 h 75 1981-08-01 p 59 1949-03-01 p 039480001x| 1608 | 451160916 | 7808 | 03948007531590 TABLE3: stock isbn costretailstock 0385121679 29.00|36.9565 039480001x | 30.00 | 32.95 I 31 0394900014 | 23.00 23.95 |

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago

Question

Describe your ideal working day.

Answered: 1 week ago