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 do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?

1021


What is the ‘fillfactor’?

1015


What is clustered index

1060


How do you create type- insensitive operator?

1100


How to enter date and time literals in ms sql server?

1066


How to define and use table alias names in ms sql server?

1208


Is null in sql server?

1043


What is query optimization process?

1081


How sql server enhances scalability of the database system?

1315


How to copy data from one table to another table?

1051


How to receive returning result from a query?

1191


What are the disadvantages of using the stored procedures?

1186


Do you know what are the restrictions that views have to follow?

1127


What do you understand by replication in sql server? Mention the different types of replication in sql server.

994


What are three ways you can use an identity value inside a trigger? Why would you prefer one way over another?

1043