Question: Write a select statement that returns the order_id and customer_id from the orders table. Then, add a conditional field that returns the following: If the

Write a select statement that returns the order_id and customer_id from the orders table. Then, add a conditional field that returns the following: If the order has not yet shipped, return the text This order has not yet shipped. If the order has shipped, return the text This order was shipped on: and then return the shipped_date formatted as MM/DD/YYYY. (The way US users are accustomed to reading dates.) Finally, filter your output for orders with an order_id greater than 700 and order by order_id

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!