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

1. How to fetch all the duplicate records from the table.

2. How to fetch the second highest salary from the table.

Answer Posted / neelu

select max(salary) from employees where rownum<= 2
order by salary desc

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about temporary stored procedure?

1033


List out the difference between union and union all in sql server?

999


Does a server store data?

930


How many clustered indexes can be created on a table? I create a separate index on each column of a table. what are the advantages and disadvantages of this approach?

1119


What is difference between foreign key and unique key?

1018


What is partitioned view?

909


What do you understand by triggers?

929


How to find tables without indexes?

1092


Can you please differentiate between a primary key and a unique key?

1014


what are defaults? Is there a column to which a default can't be bound? : Sql server database administration

1144


What is the report builder?

141


How can we migrate from SQL server to SQL Azure?

113


What is sqlcmd?

1066


What do you mean by data integrity?

1089


Do you know what is fill factor and pad index?

1009