Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project Description: Please write SQL queries to update tables extract the following information. Write your queries based on the database you developed in the previous
Project Description: Please write SQL queries to update tables extract the following information. Write your queries based on the database you developed in the previous project. For each question, write a SQL query and save it as a "sq" file using a different query name, for example, query1, query2, etc. Please execute these queries sequentially uct: product_id (PK) brand production_cost (FK) name category (Not Null) ToothpasteSupermarket Multivitamin Supermarket Supermarket Department Department Pharmacy Pharmacy Pharmacy (Not Null) Shampoo Jacket T-shirt Supplements 4 6 6 6 10 Popcom Quervl. Update the Product table by adding another column as shown above ucts (name) with uerv2. Retrieve all the uction cost equal to one dollar ducts under the brand Equate Query4. List the name(s) of all brands with products that have a production cost less than 4 dollars uerv3. List the name(s) of all uerv5. Retrieve all the Query6. List the name(s) of the brands that make more than one product ducts (along with selling price) sold in Walgreens, ordered by selling price uerv7. List the name(s) and selling price of the s) which brand is under the "exclusive" license Query8. List the name(s) of the brand(s) which make at least one "Supermarket" product and which contract year is after 2012 Query9. List the name(s) of the vendor which has selling price lower than 10 dollars for at least one product in su rket cate uery10. List the name(s) of the products and the highest selling price for each product Query11. Group and count the products by their category for which their brand is specifically under the "non-exclusive'" license uerv12. List the names of the products and ordered them by their brand's contract vear Query13 Create the following table and name its Category: Project Description: Please write SQL queries to update tables extract the following information. Write your queries based on the database you developed in the previous project. For each question, write a SQL query and save it as a "sq" file using a different query name, for example, query1, query2, etc. Please execute these queries sequentially uct: product_id (PK) brand production_cost (FK) name category (Not Null) ToothpasteSupermarket Multivitamin Supermarket Supermarket Department Department Pharmacy Pharmacy Pharmacy (Not Null) Shampoo Jacket T-shirt Supplements 4 6 6 6 10 Popcom Quervl. Update the Product table by adding another column as shown above ucts (name) with uerv2. Retrieve all the uction cost equal to one dollar ducts under the brand Equate Query4. List the name(s) of all brands with products that have a production cost less than 4 dollars uerv3. List the name(s) of all uerv5. Retrieve all the Query6. List the name(s) of the brands that make more than one product ducts (along with selling price) sold in Walgreens, ordered by selling price uerv7. List the name(s) and selling price of the s) which brand is under the "exclusive" license Query8. List the name(s) of the brand(s) which make at least one "Supermarket" product and which contract year is after 2012 Query9. List the name(s) of the vendor which has selling price lower than 10 dollars for at least one product in su rket cate uery10. List the name(s) of the products and the highest selling price for each product Query11. Group and count the products by their category for which their brand is specifically under the "non-exclusive'" license uerv12. List the names of the products and ordered them by their brand's contract vear Query13 Create the following table and name its Category
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started