Synechron interview question

SQL based questions