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 find the second highest salary from emp table?

Answer Posted / abhijeet banarse

Select level,Max(sal) from emp1
Where level=&level connect by prior sal>sal
group by level;
Enter the level No=2 (Here enter 2 manually)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a composite key be null?

972


What are sql triggers used for?

991


Why functions are used in sql?

988


What is primary key and foreign key?

958


Is it possible to include an insert statement on the same table to which the trigger is assigned?

1011


What is primary key in db?

1004


What is a temporal data type?

1043


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

1070


how do you tune the slow running queries in oracle db , explain the methodology

2705


What is pragma in pl sql?

1102


Can you have more than one trigger on a table?

998


How many rows can sqlite handle?

1108


how to select unique records from a table? : Sql dba

1108


What is a sql profiler?

1018


what is a record in a database ? : Sql dba

1059