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

Following are some of the question related to below
mentioned query?

select e1.salary from employee3 e1
where 2=
(
select count(distinct(e2.salary))
from employee3 e2 where e2.salary>=e1.salary
)

1) What the query returns?

2) How it works? - Detail explanation (what the sub query
does, why it is (where 2=)....etc...Please?

Answer Posted / haris

yah this query works fine and return the 2nd highest salary.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sqlservr.exe - process - sql server (sqlex?press)?

1052


When columns are added to existing tables, what do they initially contain?

975


What is sqlcmd?

960


what is the difference between delete table and truncate table commands? : Sql server database administration

959


Which are ddl commands?

970


What do you understand by check constraint in sql server?

884


What are the different types of backups that exist?

1108


What are the benefits of normalization?

1044


Differentiate between delete and truncate.

994


Different types of keys in SQL?

1026


How to access the inserted record of an event?

988


Can we join two tables without primary key?

978


How to get all stored procedures in sql server?

936


Can We Use Data-grids For Our Report In Ssrs?

177


How to bind a view to the schema of the underlying tables?

945