it is actually correct. It is just the ordering of the record is not as what you think.Do note that without ORDER BY, the sequence of the record return might be random.TrySELECT '2012-01-01' , DATENAME(DW,'2012-01-01') unionSELECT '2012-01-02' , DATENAME(DW,'2012-01-02') unionSELECT '2012-01-03' , DATENAME(DW,'2012-01-03') unionSELECT '2012-01-04' , DATENAME(DW,'2012-01-04') unionSELECT '2012-01-05' , DATENAME(DW,'2012-01-05') unionSELECT '2012-01-06' , DATENAME(DW,'2012-01-06') unionSELECT '2012-01-07' , DATENAME(DW,'2012-01-07')
KH[spoiler]Time is always against us[/spoiler]