Eurostop interview question

SQL query is most important