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 encryption key?

119


How does a profiler work?

882


How to list all dsn entries on your local machine using odbc_data_source()?

991


what is a join and explain different types of joins? : Sql server database administration

925


How to use wildcard characters in like operations in ms sql server?

1080


How to write a query with an inner join in ms sql server?

1009


Mention what are the core components of ssrs?

298


What is acid properties?

1034


What is report snapshot in ssrs?

253


What do you mean by collation recursive stored procedure?

1028


What is the process of normalising?

961


How many levels of sp nesting is possible?

1009


Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?

1075


What are the ways available in sql server to execute sql statements?

1059


What is the difference between clustered and non-clustered indexes in ms sql server?

957