Question d’entretien chez Amazon

SQL: something like self join, window function