Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Show product information for sneakers that cost less than $50 and have a name that contains canvas. Show the product name, its composition, and

1. Show product information for sneakers that cost less than $50 and have a name that contains "canvas". Show the product name, its composition, and its list price.

2. Show the manufacturername,city, and state for all manufacturers located in the states of Texas(TX), New York(NY), Arizona(AZ). Order the output alphabetically by state, and then by manufacturername.

3. Show the customer first name, customer last name, city, and state for all customers who live in Tulsa or Oklahoma City. Also, include customers from Oklahoma (state='Ok') where the city begins with the letter 'C'.

4. Show the customer's firstname, customer's last name, customer's city (call it 'CustCity'), product name, list price for all products made by manufacturers in Texas ( state = 'TX') and purchased by customers in Mesa or Belleville.

5. For white sandals, how does the current list price compare to the price at which products have sold? Show the product name, the list price, the sale price, and a newly calculated column named "discount," which is the list price - sale price. Show the unique records in descending order by the product name.

6. What is the total count of manufacturers from Texas (State = 'TX')? Your query should display one column named 'Texas_count" (Hint: create an alias "Texas_count")

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 1 Lnai 9851

Authors: Paolo Frasconi ,Niels Landwehr ,Giuseppe Manco ,Jilles Vreeken

1st Edition

3319461273, 978-3319461274

More Books

Students also viewed these Databases questions

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago