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

Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / deven

select top 1 salary from emp where salary <>(
select top 1 salary from emp order by salary desc) order by
salary desc

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between row level and statement level trigger?

1019


Explain the difference between cursor declared in procedures and cursors declared in the package specification?

1150


What are %type and %rowtype for?

1052


Why do we use function in pl sql?

1058


What plvcmt and plvrb does in pl/sql?

1319


How do I view a sql trace file?

1025


Can we insert delete data in view?

950


Is trigger a stored procedure?

931


Is primary key clustered index?

945


Is sql pronounced sequel or sql?

1260


How many tables can you join in sql?

957


Explain the uses of database trigger.

1112


Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)

954


How you improve the performance of sql*loader? : aql loader

1009


How to avoid using cursors?

1117