Write an SQL query to report the distance traveled by each user.

 --Write an SQL query to report the distance traveled by each user.
--Return the result table ordered by travelled_distance in descending order, if two or more users traveled the same distance,order them by their name in ascending order.


Solution:


Check out my video for the solution:




Comments