The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 313 Weeks Ago, 6 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Oracle SQL
Chapter 2 Advanced Challenge
Â
The management of JustLee 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 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 customerâs 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 itemâs cost from the
retail price to calculate the dollar amount of profit, and then divide the profit by the itemâs cost.
The solution is then multiplied by 100 to determine the profit percentage for each book. Use
a SELECT statement to display each bookâs 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. Submit documentation of the commands and their
results, using the format specified by your instructor.
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly