Question: Use the UNION operator to generate a result set consisting of three columns from the Orders table: ship_status A calculated column that contains a value

Use the UNION operator to generate a result set consisting of three columns from the Orders table:

ship_status A calculated column that contains a value of SHIPPED or NOT SHIPPED

order_id The order_id column

order_date The order_date column

If the order has a value in the ship_date column, the ship_status column should contain a value of SHIPPED. Otherwise, it should contain a value of NOT SHIPPED.

Sort the final result set by order_date.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!