March 22, 2023 at 12:36 pm
Define 'properly'. It looks OK to me, unless you want to sort on the name of the month, rather than its ordinal.
March 22, 2023 at 12:39 pm
Yep, looks right to me too.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
March 22, 2023 at 12:44 pm
got it thanks for the clarification . I should have observed i am sorting based on year and month.
thanks hguys
March 22, 2023 at 12:59 pm
Also, why not just use
ORDER BY BusinessEntityID, OrderDate
?
It might perform better.
March 22, 2023 at 4:16 pm
Also, why not just use
ORDER BY BusinessEntityID, OrderDate?
It might perform better.
+1000
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply