Larsen & Toubro interview question

SQL basic