Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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?

imageimage

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Ethics A Stakeholder And Issues Management Approach

Authors: Joseph W. Weiss

7th Edition

1523091541, 978-1523091546

More Books

Students also viewed these Databases questions