Barclays Interview Questions | Query II
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways
Answers ( 3 )
select table1.first_name, table1.last_name from table1 join table2 on table1.id=table2.id where table2.salary=(select max(table2.salary) from table2) order by table1.last_name;
select first_name, last_name, max(salary)
from table1 inner join table2 using(id)
order by 2
select T1.First_Name, T1.Last_Name, max(T2.salary)
from Table1 T1 inner join Table2 T2
on T1.id =T2.id
Order by T1.Last_Name ;