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

select min(salary) from (select top 2 sal from table_name order by sal desc)salary

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is t sql in sql server?

1132


Explain the savepoint statement.

1137


what are the performance and scalability characteristics of mysql? : Sql dba

1034


How do you identify a primary key?

1115


What are two statement types in sql?

1161


Is stored procedure faster than query?

1021


Are pl sql variables case sensitive?

1093


What sql does db2 use?

1029


What is the difference between the sql*loader and import utilities? : aql loader

1099


what is a foreign key ? : Sql dba

1117


Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?

1086


How do you exit in sql?

1159


What is self-join and what is the requirement of self-join?

1192


i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5

4099


What is sql dialect?

1180