Moody's Interview Question

SQL table analytics