From an Employee table, how will you display the record
which has a maximum salary?

Answer Posted / mayank kumar

<-- it will display max salary only-->
Select max(distinct salary)
from employee;



<-- it will display all information of employee having max salary -->

select * from employees
where salary=(select max(distinct salary) from employees);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a database? : Sql dba

610


Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

497


what is the difference between nested subquery and correlated subquery?

549


What are tables in sql?

550


How to get list of all tables from a database?

631






What is dialect in sql?

527


Explain polymorphism in pl/sql.

641


Which sql most popular?

556


Why stored procedure is faster than query?

519


How many types of tables are there?

509


Can we use distinct and group by together?

588


What are different types of tables in sql?

531


What plvcmt and plvrb does in pl/sql?

881


how to use 'mysql' to run sql statements? : Sql dba

539


What are the two types of exceptions in pl/sql?

548