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...

Find 2nd Highest salery in emp table

Select* from emp where &n=
select * count from emp where (salery >=emp.salery)


Enter n value 2


These query is correct or not. Tell me any other methods.

Answer Posted / kb

select top 1 * from emp
where sal < (select max(sal)from emp)
order by sal desc

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

you have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation? : Sql server administration

890


Explain what are various ways to enhance the ssrs report?

992


What is the name of the Database which IBM mainframe uses?

949


Explain transaction server isolation?

982


How to fine-tune reports?

247


What is always encrypted?

942


What are the purpose of Normalisation?

1001


What is an expression in ms sql server?

1015


How to provide column names in insert statements in ms sql server?

1075


What is the stuff and how does it differ from the replace function?

1007


Can we deploy SSRS reports on our personal website?

162


Explain hostprotectionattribute in sql server 2005?

961


How can I check if a view exists in a sql server database?

984


What command do we use to rename a database?

1014


What are the types of indexes?

1033