Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. You need to sell more of your high-end bikes. You want to take $500 off all bikes that have a list price of $5,000.00

image text in transcribed

image text in transcribed

6. You need to sell more of your high-end bikes. You want to take $500 off all bikes that have a list price of $5,000.00 or more. You need to have a list showing the bike name, list price and discount price with an alias of 'Discount Price'. Sort the list showing the most expensive bike first. The result set will look like this:

image text in transcribed

7. An important announcement was given to all the staff at your store (store_id 1). The same announcement needs to get to all the other staff at the other stores. You don't want to email all your staff again. You need a list of all the staff and their email who are not from your store.

image text in transcribed

8. A customer needs more information about a specific bike, but all they know is that is has the word 'spider' in the name. You need to list the name, model year, and list price of all the bikes with the word 'spider' somewhere in the name.

image text in transcribed

9. You need to list all bikes names that have a range of prices from $500 to $550 sorted with the lowest price first.

image text in transcribed

10. Show the customer's first_name, last_name, phone, street, city, state, zip_code who:

  • have a phone number listed
  • and whose city has the letters 'ach' or 'och' somewhere in their name of the city
  • or whose last name is William.

Limit the result set to the first five results.

image text in transcribed

Bike Shop Queries: Create queries that the bike shop may need for the following business purposes. 5. There is a product demonstration and bike race planned in Houston, Texas and you'd like to text each of your customers from that city to see if they will participate. You need a list of their first and last names and phone numbers Your result set should look like this with nine customers: Discount Price product_name list_price Trek Domane SLR 9 Disc - 2018 11999.99 11499.99 Trek Domane SLR 8 Disc - 2018 7499.99 6999.99 Trek Silque SLR 8 Women's -... 6499.99 5999.99 Trek Domane SL Frameset - 2... 6499.99 5999.99 Trek Domane SL Frameset W... 6499.99 5999.99 Trek Emonda SLR 8 - 2018 6499.99 5999.99 Trek Silque SLR 7 Women's -... 5999.99 5499.99 Trek Domane SLR 6 Disc - 2017 5499.99 4999.99 Trek Domane SL 8 Disc - 2018 5499.99 4999.99 Trek Domane SLR 6 Disc Wo... 5499.99 4999.99 Trek Domane SLR 6 Disc - 2018 5499.99 4999.99 Trek Fuel EX 9.8 27.5 Plus - 2... 5299.99 4799.99 Trek Remedy 9.8 - 2017 5299.99 4799.99 Discount Price product_name list_price Trek Domane SLR 9 Disc - 2018 11999.99 11499.99 Trek Domane SLR 8 Disc - 2018 7499.99 6999.99 Trek Silque SLR 8 Women's -... 6499.99 5999.99 Trek Domane SL Frameset - 2... 6499.99 5999.99 Trek Domane SL Frameset W... 6499.99 5999.99 Trek Emonda SLR 8 - 2018 6499.99 5999.99 Trek Silque SLR 7 Women's -... 5999.99 5499.99 Trek Domane SLR 6 Disc - 2017 5499.99 4999.99 Trek Domane SL 8 Disc - 2018 5499.99 4999.99 Trek Domane SLR 6 Disc Wo... 5499.99 4999.99 Trek Domane SLR 6 Disc - 2018 5499.99 4999.99 Trek Fuel EX 9.8 27.5 Plus - 2... 5299.99 4799.99 Trek Remedy 9.8 - 2017 5299.99 4799.99 first_name last_name email Jannette Marcelene Venita Kali Layla Bernardine David jannette.david @bikes.shop Boyer marcelene.boyer@bikes.... Daniel venita.daniel@bikes.shop Vargas kali.vargas@bikes.shop Terrell layla.terrell@bikes.shop Houston bernardine.houston@bik... product_name model_year list_price 832.99 Sun Bicycles Spider 31 - 2017 2017 product_name list_price Electra Moto 1 - 2016 529.99 Electra Cruiser Lux 3i - 2018 529.99 Electra Cruiser Lux 3i Ladies' - 2018 529.99 Sun Bicycles Streamway 7 - 2017 533.99 Haro SR 1.1 - 2017 539.99 Electra Townie Original 21D - 2016 549.99 Electra Townie Original 21D - 2016 549.99 Haro Flightline Two 26 Plus - 2017 549.99 last_name phone street state zip_code NULL first_name Theo Dacia Toya Maribel Janella Reese William Pratt William Bright city (562) 215-2907 8755 W. Wild Horse St. Long Beach 62 Cypress Drive Sugar Land (562) 218-6405 485 San Pablo Drive Long Beach 65 Magnolia Ave. Torrance (507) 616-2958 7317 Tower Dr. Rochester NY TX NY CA NY 11561 77478 11561 90505 14606 NULL

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

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions

Question

4. What sales experience have you had?

Answered: 1 week ago