Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

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
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education