Prompt: You work in the Procurement Department, and you need a list of select items carried for sale by COB 204 Company and details about the supplier and current stock balance. Develop a query that will produce output with the following attributes in this order: product name, supplier name, and the quantity of product in stock. Restrict the query to include only those products supplied by a supplier whose company name starts with the letter E. Additionally, restrict the query to only those products that currently have a quantity in stock that is greater than or equal to 50. Finally, sort the query output alphabetically by the product name. SQL Statement (case sensitive, must reflect what was used in SQL Browser to execute the prompt): SELECT Product.ProdName, Supplier.CompanyName, Product. FROM Product Supplier ON Product. =Supplier. WHERE Supplier. AND Product. 50 ORDER BY Product.ProdName; Query Result Count (enter number only, ex. 12): Result: rows

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
icon
Concept explainers
Question
## Educational Content: SQL Query Structure for Procurement Data

### Prompt:
You work in the Procurement Department and need a list of select items carried for sale by COB 204 Company, including details about the supplier and current stock balance. Develop a query that will output the following attributes in this order: product name, supplier name, and the quantity of product in stock. Restrict the query to include only those products supplied by a supplier whose company name starts with the letter E. Additionally, limit the query to only those products that currently have a quantity in stock that is greater than or equal to 50. Finally, sort the query output alphabetically by the product name.

### SQL Statement (case sensitive, must reflect what was used in SQL Browser to execute the prompt):

```sql
SELECT Product.ProdName, Supplier.CompanyName, Product._____
FROM Product _____ Supplier ON Product._____ = Supplier._____
WHERE Supplier._____ 'E%' AND Product._____ >= 50
ORDER BY Product.ProdName;
```

### Query Result Count (enter number only, ex. 12):
Result: _____ rows

### Explanation:
- **Product.ProdName**: Fetches the product name.
- **Supplier.CompanyName**: Retrieves the name of the supplier.
- The query restricts suppliers to those whose names start with 'E'.
- **Product._____:** Fetches the stock quantity.
- **Product._____ >= 50**: Ensures only products with a stock count of 50 or more are selected.
- Results are sorted by the product name alphabetically.
Transcribed Image Text:## Educational Content: SQL Query Structure for Procurement Data ### Prompt: You work in the Procurement Department and need a list of select items carried for sale by COB 204 Company, including details about the supplier and current stock balance. Develop a query that will output the following attributes in this order: product name, supplier name, and the quantity of product in stock. Restrict the query to include only those products supplied by a supplier whose company name starts with the letter E. Additionally, limit the query to only those products that currently have a quantity in stock that is greater than or equal to 50. Finally, sort the query output alphabetically by the product name. ### SQL Statement (case sensitive, must reflect what was used in SQL Browser to execute the prompt): ```sql SELECT Product.ProdName, Supplier.CompanyName, Product._____ FROM Product _____ Supplier ON Product._____ = Supplier._____ WHERE Supplier._____ 'E%' AND Product._____ >= 50 ORDER BY Product.ProdName; ``` ### Query Result Count (enter number only, ex. 12): Result: _____ rows ### Explanation: - **Product.ProdName**: Fetches the product name. - **Supplier.CompanyName**: Retrieves the name of the supplier. - The query restricts suppliers to those whose names start with 'E'. - **Product._____:** Fetches the stock quantity. - **Product._____ >= 50**: Ensures only products with a stock count of 50 or more are selected. - Results are sorted by the product name alphabetically.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
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