Problem 2837 · Easy

Total Traveled Distance

SQL walkthrough: left-join rides onto users so that riders and non-riders both appear, then sum distances. The sample tables are invented for teaching.

Open the interactive visualisation