. Which manufacturers are located in the city of New York? Show the manufacturer's name, state, postal code, and contact person. 2. Show product information for white shoes in the 'sneakers' category that cost more than $50 and have a product description that begins with the letter "b" or "t". Show only the product name, its composition, and its list price. 3. Show the product name, description, and category for all shoes with a list price of $150 or more and in one of the following categories: sneakers, boots, or sandals. Order the output alphabetically by product name.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

create table queries using sinplified sales table

1. Which manufacturers are located in the city of New York? Show the manufacturer's name, state, postal code, and contact person.

2. Show product information for white shoes in the 'sneakers' category that cost more than $50 and have a product description that begins with the letter "b" or "t". Show only the product name, its composition, and its list price.

3. Show the product name, description, and category for all shoes with a list price of $150 or more and in one of the following categories: sneakers, boots, or sandals. Order the output alphabetically by product name.

4. How many customers do we have with a last name starting with a 'Q' living in each city? Your query should display two columns, one named cust_num and one named city. Sort the results alphabeticaly by city.

5. Show the product name, list price, customer state (call it 'CustState'), and manufacturer state (call it 'ManState') for all products made by manufacturers in Connecticut (CT) and purchased by customers in New York (NY).

6. For green sandals, how does the current list price compare to the price at which products have sold? Show the product name, the

7. What is the total number of products sold by each manufacturer? Your query should display two columns, one named productnum and one named manufacturername. Sort the results alphabetically by manufacturername.

Customer
Sale
Saleltem
Product
Manufacturer
ProductiD
ManufactureriD o
MarufacturerName
CustomeriD
SalelD
SalelD
FirstName
ProductiD
ProductName
SaleDate
CustomerID
LastName
ItemSize
ManufactureriD
Address1
StreetAddress
Quantity
Address2
Composition
ListPrice
Tax
City
Shipping
SalePrice
City
State
Gender
State
PostalCode
Category
PostalCode
Employee
EmployeelD
Phone
Country
Phone
Color
FirstName
Fax
Description
LastName
SalaryEmployee
Contact
Address
EmployeelD
URL
City
Salary
State
ZIP
WageEmployee
Phone
EmployeelD
Wage
ManageriD
SSN
MaxHours
EmailAddress
HireDate
Transcribed Image Text:Customer Sale Saleltem Product Manufacturer ProductiD ManufactureriD o MarufacturerName CustomeriD SalelD SalelD FirstName ProductiD ProductName SaleDate CustomerID LastName ItemSize ManufactureriD Address1 StreetAddress Quantity Address2 Composition ListPrice Tax City Shipping SalePrice City State Gender State PostalCode Category PostalCode Employee EmployeelD Phone Country Phone Color FirstName Fax Description LastName SalaryEmployee Contact Address EmployeelD URL City Salary State ZIP WageEmployee Phone EmployeelD Wage ManageriD SSN MaxHours EmailAddress HireDate
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Basic sql queries
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education