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

what is spatial nonclustered index

986


how would you store your query in an SSRS report or a Database server?

162


What is de-normalization and what are some of the examples of it?

974


How network traffic be reduced by using the stored procedure?

1114


What is star, snowflake and star flake schema? : sql server analysis services, ssas

1154


How optimize sql query with multiple joins in sql server?

900


What are the different index configurations a table can have?

958


Why should we go for stored procedures? Why not direct queries?

1092


Tell about MOM Tool(Microsoft Operator Manager)?

1909


Why use “pivot” in sql server?

1110


Define left outer join in sql server joins?

958


you have couple of stored procedures that depend on a table you dropped the table and recreated it what do you have to do to reestablish those stored procedure dependencies?

1044


Do you know the cursor types?

1156


How do I change my passwords (database, LDAP, and so on) without causing an outage?

1065


What is the importance of a recovery model?

1046