Question: This is a challenging problem, try your best. There are many ways to accomplish it , but the simplest using on SQL you already know
This is a challenging problem, try your best. There are many ways to accomplish it but the
simplest using on SQL you already know is to use the UNION statement to join two queries
together. Approach this by creating the two queries first and then combining them with the
UNION clause.
You have been asked to create a query that will display the word SHIPPED for any order that
has shipped and the words NOT SHIPPED for any order that has not shipped yet. You can tell
if an order has shipped by looking at the ORDERSTATUS field in the OEORDERS table. An
ORDERSTATUS value greater than or equal to has been SHIPPED, and anything
less than has is NOT SHIPPED.
You will use a UNION to join two queries together.
Query #:
Using the OEORDERS table, select ORDERID ORDERDATE, and a character field
SHIPPED with an alias of STATUS. Only select orders with an ORDERSTATUS
value that is greater or equal to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
