Frage im Vorstellungsgespräch bei Lyft

SQL question - walk through thought process, and write out query