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

Is mysql better than sql server?

1067


What is an identity column in insert statements?

1026


What options are there to delete rows on the publisher and not on the subscriber? : sql server replication

1222


Explain foreign key in sql server?

1033


What is wrong with sql server client libarary dll, ntwdblib.dll?

1045


Explain the steps to use transact-sql cursor?

1071


What is the current limitation of the size of SQL Azure DB?

127


How do indexes help, types?

969


my name is sejal I have cleared the sbi clerk exam. I am BCA graduate My favorite subject RDBMS Relational database management system. so please send me rRDBMS related interview questions

1948


What is rank function?

1037


Can we check locks in database? If so, how can we do this lock check?

949


Explain database normalization?

1234


Difference Between ORDER BY Clause and GROUP BY Clause in SQL?

1066


what does the automatic recovery do? : Sql server administration

1025


Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?

960