Refer the given table and answer the question that follow: TABLE : CLIENT Client no Client_Name Address C100 C101 C102 DELL SANDISK SAMSUNG | KOREA LENOVO Order_Date AMERICA 05-05-2018 KINGDOM 10-10-1998 12-08-2010 10-07-1998 C103 JAPAN TABLE: CLIENT_DETAILS Client_no Order_No Product Cost Quantity Status C100 C101 C102 C103 C104 a. Write an SQL query to display client_no, check the quantity, and display the types of Customer based on the condition given below [USE CASE EXPRESSION] 100.40 SMARTWATCH 300.50 4000 2000 R001 JIOCLASS 3000 PROGRESS R002 DELIVERED R001 SPYCAMERA 600.10 PROGRESS DELIVERED PROGRESS R003 IROBOT 4000 400 R002 RADAR 500.00 IF it is 4000, then retum "GOLD' IF it is 3000, then retum 'SILVER' IF it is 2000, them retum 'BRONZE' ELSE retum 'OTHERS' b. Write an SQL query to display client_no.client_name, product where the quantity is 2000 or 4000. [Use - LEFT OUTER JOIN] c. Write an SQL query to display the client_no, order_date who ordered before the client 'C102"; [Hint: Use Subquery].
Refer the given table and answer the question that follow: TABLE : CLIENT Client no Client_Name Address C100 C101 C102 DELL SANDISK SAMSUNG | KOREA LENOVO Order_Date AMERICA 05-05-2018 KINGDOM 10-10-1998 12-08-2010 10-07-1998 C103 JAPAN TABLE: CLIENT_DETAILS Client_no Order_No Product Cost Quantity Status C100 C101 C102 C103 C104 a. Write an SQL query to display client_no, check the quantity, and display the types of Customer based on the condition given below [USE CASE EXPRESSION] 100.40 SMARTWATCH 300.50 4000 2000 R001 JIOCLASS 3000 PROGRESS R002 DELIVERED R001 SPYCAMERA 600.10 PROGRESS DELIVERED PROGRESS R003 IROBOT 4000 400 R002 RADAR 500.00 IF it is 4000, then retum "GOLD' IF it is 3000, then retum 'SILVER' IF it is 2000, them retum 'BRONZE' ELSE retum 'OTHERS' b. Write an SQL query to display client_no.client_name, product where the quantity is 2000 or 4000. [Use - LEFT OUTER JOIN] c. Write an SQL query to display the client_no, order_date who ordered before the client 'C102"; [Hint: Use Subquery].
Chapter6: Additional Database Objects
Section: Chapter Questions
Problem 7MC
Related questions
Question
Only answer for (a) and (b) and (c)
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 3 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
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning