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

SELECT TOP 1 FieldName FROM (SELECT TOP 2 FieldName FROM
Tabname ORDER BY FieldName DESC) allis ORDER BY FieldName
ASC

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the constraints available in sql?

1088


Explain table and field in sql?

1118


Explain sql data types?

1145


What is left join example?

1009


what are the differences between binary and varbinary? : Sql dba

1085


What are keys in sql?

1043


How many columns should be in an index?

1016


When is the explicit cursor used ?

1091


How is use pl and sql?

1110


when is the use of update_statistics command? : Sql dba

1099


what is myisam? : Sql dba

1163


How to run sql functions in pl/sql?

1124


What is a table?

1061


What is the plv (pl/vision) package offers?

1113


How many primary keys can a table have?

1059