79278792

Date: 2024-12-13 15:28:42
Score: 0.5
Natty:
Report link

The simplest way today is:

SELECT 
    CAST(OrderDate AS DATE) AS OrderDateOnly, -- Extracts the date part
    CAST(OrderDate AS TIME) AS OrderTimeOnly  -- Extracts the time part
FROM 
    Orders;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jorge Villalobos