Amazon interview question

SQL joins and one business case study