Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain aggregate functions are available there in sql?

1051


what are all different types of collation sensitivity? : Sql dba

1031


Mention what plvcmt and plvrb does in pl/sql?

1201


what are the advantages of sql ? : Sql dba

1111


Why we use joins in sql?

1036


What is the mutating table and constraining table?

1084


What is use of trigger?

989


what is a tablespace? : Sql dba

1102


What are the sql versions?

1002


Explain what is rdbms?

1091


What is snowflake sql?

1130


How is a process of pl/sql compiled?

1243


What type of database is cloud sql?

1160


What are sql data types?

1072


What is procedure in pl sql?

1092