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...

how to calcuate the second highest salary of he employee

Answer Posted / lalit

select name, sal from (select name,sal from emp where sal<(select max(sal) from emp) order by sal desc)where rownum=1;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use two order by clause in query?

1020


Does sql*plus have a pl/sql engine?

1136


How do I save a stored procedure?

1077


explain the difference between delete , truncate and drop commands? : Sql dba

1155


What is a call statement? Explain with an example.

1077


column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.

7498


What is cartesian join in sql?

1199


What is pl sql architecture?

1008


Which one is better sql or oracle?

1015


What is pl sql collection?

1017


How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?

1155


How do you clear the screen in sql?

1124


Mention what does the hierarchical profiler does?

1147


what is 'mysqlimport'? : Sql dba

1117


What is use of term?

1131