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

can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com

Answer Posted / tulasi ravi kumar

hi,
my id is ravi106109@gmail.com

select sal from emp a
where 1=(select count(b.sal) from emp b
where a.sal<b.sal) order by sal desc;

and also dileep is write

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to filter records of table in SQL SERVER?

1087


Suppose you want to implement the one-to-one relationships while designing tables. How would you do it?

959


What do you understand by intent locks?

1018


Define union, union all, minus, intersect?

985


Can a table be created inside a trigger?

974


What command would you use to add a column to a table in sql server?

1314


Can you pass expressions to stored procedure parameters?

1041


What will be the maximum number of indexes per table?

964


What is a not null constraint?

1038


Can a rule be bound to any column of any data type?

965


What are the advantages of using cte?

1022


What is sub-query in sql server? Explain its properties.

1097


How to update muliple row in single query?

1066


What is normalization of database? What are its benefits?

1029


Describe how to use linked server?

1025