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

what is syntex second or third highest salary.


thanks & Regards
Dhirendra sinha

Answer Posted / veeresh kethari

with Topsal (EmpID,Ename,Sal,Dno,Topsal) as
(select *,row_number() over(order by sal) Topsal from emp)
select top 2 EmpID,Ename,Sal,Dno from Topsal order by sal desc

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between delete and truncate statements?

1020


What are the rules to use the rowguidcol property to define a globally unique identifier column?

967


Explain few examples of stored procedure over triggers?

964


How do I find the transaction log size in sql server?

917


How to stop a loop early with break statements in ms sql server?

976


When would you use the stored procedures or functions?

950


What is DCL?

979


What happens if you add a new index to large table?

885


Mention what are the different types of ssrs reports?

144


what is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration

970


What do you understand by intent locks?

956


Define msdb database?

974


Explain about link server in sql server?

1008


What stored by the model?

984


Why are you getting errors when creating a new odbc dsn?

1169