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

Please get the 4 th maximum salary from a table without
using any sql keyword (TOP,MAX are mot allowed)

Answer Posted / veeresh kethari

with SalCTE (EMPID,Ename,Sal,Num)as

(select *,row_number() over(order by sal desc) num from emp)

select * from SalCTE where Num=4

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many triggers you can have on a table?

993


Explain mixed authentication mode of sql server?

1054


What do you mean by recursive stored procedure?

943


What is use of attribute hierarchy optimized state? : sql server analysis services, ssas

1058


What is cursors? And what are the different types of cursor?

1140


What is the index requirement in SQL Azure?

98


How check triggers in sql server?

984


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

1084


How to turn off warning messages during php execution?

1040


What do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?

952


How to use go command in "sqlcmd"?

1199


How can a user-defined datatype be created?

983


Give main differences between "Truncate" and "Delete".

1087


can we have a nested transaction? : Sql server database administration

1084


What does it mean to normalize data?

934