Amazon interview question

SQL commands and advanced Excel formulas