1: Write query to create canteen_table. Put check on category values as only “junk” and “Not junk”. Change colum name of product_price to unit_price. Display products manufactured between 1, jan 2019 to 1, May 2019. Display count of only junk food items in canteen_table with alias name as “junk Food Count”. Display Count Of both Junk food and not junk food products whose count is greater then 1.
1: Write query to create canteen_table. Put check on category values as only “junk” and “Not junk”. Change colum name of product_price to unit_price. Display products manufactured between 1, jan 2019 to 1, May 2019. Display count of only junk food items in canteen_table with alias name as “junk Food Count”. Display Count Of both Junk food and not junk food products whose count is greater then 1.
Chapter4: Analyzing And Charting Financial Data
Section: Chapter Questions
Problem 2.3CP
Related questions
Question
100%
Product_id |
Product_name |
Category |
Mfg_date |
Exp_Dte |
Product_price |
01 |
Dairy Milk Choclate |
Junk |
2,Aug, 2019 |
2aug, 2020 |
80 |
02 |
Lipton Tea Bags |
Not junk |
2,jan 2019 |
2, jan 2020 |
160 |
03 |
Kurkure |
junk |
2, april 2919 |
2, april, 2021 |
30 |
04 |
Shezan Juice |
Junk |
3,Aug, 2019 |
3,aug, 2020 |
30 |
06 |
Olpers Milk |
Not junk |
3,april, 2018 |
3,april, 2020 |
350 |
Canteen_table
- 1: Write query to create canteen_table. Put check on category values as only “junk” and “Not junk”.
- Change colum name of product_price to unit_price.
- Display products manufactured between 1, jan 2019 to 1, May 2019.
- Display count of only junk food items in canteen_table with alias name as “junk Food Count”.
- Display Count Of both Junk food and not junk food products whose count is greater then 1.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Introduction
VIEWSQL to create table with required check:
VIEWINSERT records in the table
VIEWWriting queries: Change colum name of product_price to unit_price.
VIEW2. Products manufactured between 1, jan 2019 to 1, May 2019.
VIEWCount of only junk food items
VIEWCount Of both Junk food and not junk food products
VIEWConclusion
VIEWTrending now
This is a popular solution!
Step by step
Solved in 8 steps with 8 images
Knowledge Booster
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.Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning