Write a SELECT statement that returns these columns from the

Write a SELECT statement that returns these columns from the Orders table: The order_date column A column that uses the DATE_FORMAT function to return the four-digit year that’s stored in the order_date column A column that uses the DATE_FORMAT function to return the order_date column in this format: Mon-DD-YYYY. In other words, use abbreviated months and separate each date component with dashes. A column that uses the DATE_FORMAT function to return the order_date column with only the hours and minutes on a 12-hour clock with an am/pm indicator A column that uses the DATE_FORMAT function to return the order_date column in this format: MM/DD/YY HH:SS. In other words, use two-digit months, days, and years and separate them by slashes. Use 2-digit hours and minutes on a 24-hour clock. And use leading zeros for all date/time components.

Solution

Here is the refrence query(in sql):

SELECT

DATE_FORMAT(order_date,\"%b-%d-%Y\") as Date1,

DATE_FORMAT(order_date,\"%m/%d/%y %H:%i\") as Date2

From

Order

Write a SELECT statement that returns these columns from the Orders table: The order_date column A column that uses the DATE_FORMAT function to return the four-

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site