It seems that your date column is not of type datetime but varchar. You have to convert it to datetime when sorting:
select date
from tbemp
order by convert(datetime, date, 103) ASC
style 103 = dd/MM/yyyy (
msdn
)
More Related Contents:
- Best approach to remove time part of datetime in SQL Server
- Sort by column ASC, but NULL values first?
- Count work days between two dates
- MySQL: Alternatives to ORDER BY RAND()
- PostgreSQL DISTINCT ON with different ORDER BY
- SQL best practice to deal with default sort order
- Optimize query with OFFSET on large table
- When no ‘Order by’ is specified, what order does a query choose for your record set?
- How to use DISTINCT and ORDER BY in same SELECT statement?
- SQL how to make null values come last when sorting ascending
- How to use Oracle ORDER BY and ROWNUM correctly?
- When to use VARCHAR and DATE/DATETIME
- How do I return rows with a specific value first?
- SQL (ORACLE): ORDER BY and LIMIT [duplicate]
- How do you do date math that ignores the year?
- Getting date list in a range in PostgreSQL
- How to ORDER BY a SUM() in MySQL?
- How to compare two dates to find time difference in SQL Server 2005, date manipulation
- SQLite and custom order by
- SQL SERVER: Get total days between two dates
- Add business days to date in SQL without loops
- Sorting string column containing numbers in SQL?
- “Order By” using a parameter for the column name
- Check whether string is a date Postgresql
- SQL for ordering by number – 1,2,3,4 etc instead of 1,10,11,12
- Return number from Oracle Select statement after parsing date
- SQL ORDER chars numerically
- Dynamic order direction
- Select query with date condition
- Oracle Convert TIMESTAMP with Timezone to DATE