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 salary of person using cursor concept?

Answer Posted / b.mamatha

select * from tabl1 where salary=(select max(salary) from
tabl1 where salary<(select max(salary) from tabl1)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are actions, how many types of actions are there, explain with example? : sql server analysis services, ssas

1038


What is enhanced database mirroring in sql server 2008?

982


How do I manually uninstall an instance of sql server 2016?

1048


Do you know nested transaction?

970


What are different types of subquery?

1255


What is the importance of a recovery model?

1055


What is the recursive stored procedure in sql server?

1033


What is the difference between a function and a stored procedure?

1081


What are the main differences between #temp tables and @table variables and which one is preferred?

1090


What is SQL Server?

1225


What is provisioning, billing and metering, and connection routing concepts in the service layer?

113


Explain nested join?

992


How many partitions a clustered index has by default in sql server 2012?

1099


How to connect to a sql server using odbc_connect()?

1165


You have modified 100 store procedures and want to replicate these changes from development to prodution, and production can have users using the Server/DB, how would you replicate without causing issues?

2160