0

Write a query to who is taking more salary

17th Dec 2016, 12:44 PM
sateesh chikkalagi
sateesh chikkalagi - avatar
3 Respostas
+ 2
sql query--> select person_name from table_name ORDER BY salary DESC; after the execution of the above query the name at top is the person who is taking more salary than other.
17th Dec 2016, 1:11 PM
Pankaj Gautam
Pankaj Gautam - avatar
+ 1
select name from tablename where salary =(select max(salary) from tablename )
17th Dec 2016, 3:25 PM
Vijeth Belle
Vijeth Belle - avatar
0
Select name from table_name order by salary desc fetch first row only
18th Dec 2016, 8:00 AM
Doni
Doni - avatar