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

Can sql servers linked to other servers?

1094


Why union all is faster than union?

976


How many types of subqueries are there in sql server?

1031


What is difference between commit and rollback when used in transactions?

1016


What are different types of subquery?

1302


Can you get second highest salary from the table?

1005


Write a program to fetch first 10 records from a file?

1060


What is primary key and example?

994


What are the advantages of policy management?

1042


How to create user messages with print statements in ms sql server?

1030


What is mean by candidate key?

1059


what protocol both networks use? : Sql server database administration

1016


Is sql server free?

970


What are the different index configurations a table can have?

1008


Explain transaction server distributed transaction?

1033