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 / r.rajivgandhi

Select max(salary) from emp where salary <(select max
(salary) from emp)

These Query is correct.Try It

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many cores do I need for sql server 2016?

951


What is mapping schema?

1068


Can you explain what are the restrictions applicable while creating views? : SQL Server Architecture

967


How to set database to be read_only in ms sql server?

1053


what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration

1112


Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.

2454


How we can compare two database data?

996


Explain candidate key, alternate key, and composite key?

1056


What have included columns when we talk about sql server indexing?

1076


How can you check the version of sql server?

1158


How to verify the port number of the sql server?

1251


What is database white box testing?

1176


How to create nested stored procedure?

1071


Explain alternate key, candidate key and composite key in sql server?

950


How dts is used to extract, transform and consolidate data?

1114