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

How can we link a sql database to an existing android app?

1041


How to run pl sql program in mysql?

1029


How to use sql*plus built-in timers?

1212


What are the different set operators available in sql?

1035


Define the select into statement.

1069


How do I run sql?

1197


how can we destroy the cookie? : Sql dba

1019


What is use of term?

1073


How can you save or place your msg in a table?

1009


What does dml mean?

999


What are operators available in sql?

1058


Is there a way to automate sql execution from the command-line, batch job or shell script?

982


Is postgresql a nosql database?

1173


what does myisamchk do? : Sql dba

1037


What is an alias command?

1074