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 / ajeshanath

select max(salary) from emp where salary not in
(select max(salary) from emp)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of dbms?

956


how mysql optimizes distinct? : Sql dba

1001


Define sql delete statement.

955


How do you optimize a stored procedure in sql?

896


What is primary key sql?

953


Table 1: col1 Timestamp ---------------- 01-mar-2012 11:12:46 Table 2: col2 Timestamp -------------------- 01-mar-2012 11:12:10 01-mar-2012 11:11:23 Write a query to display a row with table2 col2 value less than tabl1 col1 value. Maximum timestamp value previous to table1 col1 value. Display a result as: Col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

2072


What's the difference between a primary key and a clustered index?

947


What is a full join?

911


What is trigger in pl sql?

959


What are the two virtual tables available at the time of database trigger execution?

1160


What is full join in sql?

939


What is an index? What are the types of indexes? How many clustered indexes can be created on a table?

994


What will you get by the cursor attribute sql%found?

901


What is sql architecture?

984


What are the different dcl commands in sql?

1069