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: