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 / kavitha nedigunta

select * from emp e,(select max(sal) sal
from emp)a
where e.sal= a.sal;


select * from emp
where sal in(select max(sal) from
emp);

Is This Answer Correct ?    29 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql lookup?

928


How do I edit a trigger in sql developer?

1002


Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints

1080


what is the bond code in materialized view?

3005


Which is the correct statement about truncate and delete?

1116


How will you distinguish a global variable with a local variable in pl/sql?

1158


What are the advantages of pl sql over sql?

1028


What is plpgsql language?

1070


Do we need to create index on primary key?

931


What is a database? Explain

1116


How do I use google cloud in sql?

1094


How to avoid using cursors?

1128


How do you update f as m and m as f from the below table testtable?

1860


How do I count rows in sql?

1010


What is autocommit sql?

999