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].

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter6: Additional Database Objects
Section: Chapter Questions
Problem 7MC
icon
Related questions
Question
Only answer for (a) and (b) and (c)
Refer the given table and answer the question that follow:
TABLE : CLIENT
Client_no Client_Name | Address
DELL
Order_Date
AMERICA 05-05-2018
KINGDOM 10-10-1998
12-08-2010
10-07-1998
C100
C101
C102
C103
TABLE : CLIENT_DETAILS
Client_no
|C100
SANDISK
SAMSUNG KOREA
LENOVO
JAPAN
Order_No Product
Cost
Quantity Status
RO01
JIOCLASS
100.40
SMARTWATCH 300.50
3000
PROGRESS
DELIVERED
PROGRESS
DELIVERED
PROGRESS
a. Write an SQL query to display client_no, check the quantity, and display the types of
C101
C102
C103
C104
R002
4000
600.10 2000
4000
400
RO01
SPYCAMERA
R003
R002
IROBOT
RADAR
500.00
Customer based on the condition given below (USE CASE EXPRESSION]
IF it is 4000, then return 'GOLD'
IF it is 3000, then retum 'SILVER'
IF it is 2000, then 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].
d. Write an SQL query to display the client_no,order_no,status from client (matched rows), and
client_details (matched rows), arrange of cost using nulls first. [Use INNER JOIN].
Act
Go
Transcribed Image Text:Refer the given table and answer the question that follow: TABLE : CLIENT Client_no Client_Name | Address DELL Order_Date AMERICA 05-05-2018 KINGDOM 10-10-1998 12-08-2010 10-07-1998 C100 C101 C102 C103 TABLE : CLIENT_DETAILS Client_no |C100 SANDISK SAMSUNG KOREA LENOVO JAPAN Order_No Product Cost Quantity Status RO01 JIOCLASS 100.40 SMARTWATCH 300.50 3000 PROGRESS DELIVERED PROGRESS DELIVERED PROGRESS a. Write an SQL query to display client_no, check the quantity, and display the types of C101 C102 C103 C104 R002 4000 600.10 2000 4000 400 RO01 SPYCAMERA R003 R002 IROBOT RADAR 500.00 Customer based on the condition given below (USE CASE EXPRESSION] IF it is 4000, then return 'GOLD' IF it is 3000, then retum 'SILVER' IF it is 2000, then 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]. d. Write an SQL query to display the client_no,order_no,status from client (matched rows), and client_details (matched rows), arrange of cost using nulls first. [Use INNER JOIN]. Act Go
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning