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 the insert into statements in sql?

1010


how to convert numeric values to character strings? : Sql dba

1110


How to display Row Number with Records in Oracle SQL Plus?

1048


What is difference between inner join and cross join?

971


Explain isolation levels. : Transact sql

1074


what is the use of friend function? : Sql dba

1023


Why self join is used in sql?

980


What is varchar used for?

1082


What is a constraint?

1027


What is t sql in sql server?

1078


What is package in pl sql?

1028


Is sql free?

974


What is $$ in sql?

997


What are types of exception?

922


How can we store rows in PL/SQL using array?

1225