I am new to SQL Server. Can you please tell me how can I sort this table according to the Year, Month, Day, Time? So that I can display other columns like "NAME" in the correct ascending order of the date.
I was using the following SQL query, but this returns result in ascii character order:
SELECT *
FROM table_name
WHERE YEAR = '2016'
ORDER BY YEAR, MONTH, DDATE, TIME
Doesn't sort by date. Can you please show me with an example how to achieve this.
I have a SQL Server table that looks like this:

http://aa.usno.navy.mil/data/docs/JulianDate.phporder by YEAR, MONTH(MONTH+' 1 2000'), DDATE, TIMEor create a DateTime2 from the parts and order by that stackoverflow.com/questions/16298624/…