Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

The management of BooksRUs has submitted two requests. The first is for a mailing list of all customers stored in the CUSTOMERS table. The second

The management of BooksRUs has submitted two requests. The first is for a mailing list of all customers stored in the CUSTOMERS table. The second is for a list of the percentage of profit generated by each book in the BOOKS table. The requests are as follows:

1. Create a mailing list from the CUSTOMERS table. The mailing list should display the name, address, city, state, and zip code for each customer. Each customers name should be listed in order of last name followed by first name, separated with a comma, and have the column header Name. The city and state should be listed as one column of output, with the values separated by a comma and the column header Location.

2. To determine the percentage of profit for a particular item, subtract the items cost from the retail price to calculate the dollar amount of profit, and then divide the profit by the items cost. The solution is then multiplied by 100 to determine the profit percentage for each book. Use a SELECT statement to display each books title and percentage of profit. For the column displaying the percentage markup, use Profit % as the column heading.

Required: Determine the SQL statements needed to perform the two required tasks. Each statement should be tested to ensure its validity.

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_2

Step: 3

blur-text-image_3

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

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

Students explore these related Databases questions