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 in a given table????

Answer Posted / kedar

select max(salary) from employees where salary < (select
max(salary) from employees);


the max salary is 24000
& second max is 17000
chwck out

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you change old and new values in an insert, delete and update triggers?

1022


What are the different windows events activated at runtime ?

2900


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

1114


What are triggers in oracle?

1040


How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?

1908


WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?

2316


Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.

1788


What are the common oracle dba tasks?

1152


Can a formula column be obtained through a select statement ?

2330


How to assign a table row to a record variable?

1043


what is the difference between data migration and production migration.

2347


What is an oracle user role?

984


How to start a specific oracle instance?

1042


Why is oracle used?

944


How to assign a tablespace to a users in oracle?

1048