Problem 2238 · Medium

Number of Times a Driver Was a Passenger

SQL walkthrough with invented sample tables. For every driver, count the rides in which that same person appeared as a passenger, keeping drivers with zero.

Open the interactive visualisation