Question: Why are my dates not in the correct order? even though I have to format I want and they are ascending with respect to the

Why are my dates not in the correct order? even though I have to format I want and they are ascending with respect to the month part of the date, they are descending wrt the year! how can I fix this?

1 2 3 4 5 6 SELECT FORMAT (Start_Date, 'MM/yyyy') as Date,COUNT (DISTINCT [Trip_ID]) as Total_PickUps sum (Duration) as "Total_Duration" from BikeTrip GROUP

1 2 3 4 5 6 SELECT FORMAT (Start_Date, 'MM/yyyy') as Date ,COUNT (DISTINCT [Trip_ID]) as Total_PickUps sum (Duration) as "Total_Duration" from BikeTrip GROUP BY FORMAT (Start_Date, 'MM/yyyy') ORDER BY FORMAT (Start_Date, 'MM/yyyy') ASC

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!