Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write this in SQL 8. List the product names of boots made in New Hampshire. Use a subquery in the WHERE clause. Category data

Please write this in SQL

8. List the product names of boots made in New Hampshire. Use a subquery in the WHERE clause. Category data is a lower case in the database.

"boots" is a category and "New Hampshire" is a state

9.

List the names and list prices of products that sold only in a quantity of 2. In other words, in a quantity of 2 but not in any other quantities.

Hint: You will have to use 2 subqueries in the WHERE clause (not nested). The first subquery will select only those records where quantity is 2. The second subquery will select all those records where quantity is NOT 2. These two subqueries must be true at the same time. image text in transcribed

Customer Saleltem Product Manufacturer Customer D - SaleID ProductID FirstName ProductID ProductName Sale SaleID SaleDate CustomerID Tax Shipping Item Size LastName Street Address ManufacturerID Composition ManufacturerID O ManufacturerName Address1 Address2 City Quantity Sale Price ListPrice Gender State City State Postal Code Country Employee PostalCode Category Color EmployeelDO Phone Phone FirstName Fax Description SalaryEmployee Contact URL Employeeld Salary LastName Address City State ZIP Phone ManagerID SSN WageEmployee Employeeld 0 Wage MaxHours Email Address Hire Date

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

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

Identify career planning approaches.

Answered: 1 week ago

Question

What is conservative approach ?

Answered: 1 week ago

Question

What are the basic financial decisions ?

Answered: 1 week ago