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

What are sql ddl commands?

1018


What is an invalid partition table?

958


What is the file extension for sql database?

935


Is primary key an index?

944


What is coalesce in sql?

970


What is lexical units in pl sql?

1051


How to avoid duplicate records in a query?

950


Which is better join or inner query?

959


What is error ora-01000: maximum open cursors exceeded

1059


What are different types of sql commands?

1023


Can we use threading in pl/sql?

970


What are the different schemas objects that can be created using pl/sql?

966


Can you selectively load only those records that you need? : aql loader

983


How we can update the view?

1004


what is the difference between rownum pseudo column and row_number() function? : Sql dba

1018