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 / sumathy

Create Table 'Employee' with columns 'Emp_Name'
and 'Salary'. And, Insert some data.....

Cursor:
declare Cursor_Name cursor scroll
for select salary from Emploee order by salary desc
open Cursor_Name
fetch absolute 2 from Cursor_Name
deallocate Cursor_Name

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

ow to bring suspect mode datbase online from scratch

1806


How to convert numeric expression data types by assignment operations?

1081


What do you need to connect php to sql server?

1104


What are extended events in sql server?

955


What is the difference between coalesce() & isnull()?

1132


What are the functions in sql server?

947


What is difference between joins and subqueries?

1120


What is molap and its advantage? : sql server analysis services, ssas

986


What is the data type of time?

963


How is SQL Azure different than SQL server?

225


what protocol both networks use? : Sql server database administration

971


How to convert numeric expression data types using the cast() function?

1068


What is data compression?

1001


Is resultset an interface?

967


What will be the maximum number of index per table?

1005