Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The management of Just Lee Books has submitted two requests. The first is for a mailing list of all customers stored in the customers table.

The management of Just Lee Books 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 book table. The requests are as follows:

  1. Write a basic SELECT statement to 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 as last name followed by the first name, separated with a comma, and have the column header Customer Name. The city, state and zip should be listed as one column of output. The city and state should be separated by a comma and there should be one space between state and zip. The column header should be Customer Address.
  2. Write a basic SELECT statement to determine the percentage of profit for a particular item, subtract the item cost from the retail price to calculate the dollar amount of profit, and then divide the profit by the item 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 percent as the column heading.

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

More Books

Students also viewed these Databases questions

Question

=+derived from the assignment will balance the costs?

Answered: 1 week ago