PayPal interview question

Grouping tables using SQL.