Is this what you want to do?
select name, productnumber, ModifiedDate from Production.Product
order by Day(ModifiedDate)
This sorts only by the day number regardless of the year and month. You could also add:
order by Month(ModifiedDate), Day(ModifiedDate)
Paul Turley, MCSD, MCDBA, MCT, MSF Practitioner
|