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

To find second largest salary in Employee table

Answer Posted / sujith

select empname,salary from(
select empname,salary, rank() over( order by salary desc) ss from emp)
where ss=2;

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is forward - only cursors / read only cursor?

1134


You have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem?

1061


create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration

1009


What are the rendering extensions of ssrs?

160


What is optimization and its types?

1039


What are statistics?

1053


Explain about SQL server 2005?

1026


When to use Inner join & when to use subquery?

1238


How to compare the top two records using sql?

1414


How to end a stored procedure properly in ms sql server?

1149


How to verify a login name with sqlcmd tool?

1267


Difference between aggregate functions of sql?

1149


What is entity data services?

1117


What is apply operator in sql?

1047


What do you understand by a view?

1049