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

First of all this query doesn't execute. I tried it on SQL
2005 and kept getting error.

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits and tasks of object explorer? : sql server management studio

799


What is coalesce and check constraint in sql server?

718


What is function of CUBE ?

760


What is the difference between SQL notification and SQL invalidation?

785


How many types of schemas are there?

732






Explain how to integrate the ssrs reports in application?

693


What is a trigger and types of a trigger?

744


What do you mean by SQL injection attack?

800


What is meant by indexing?

665


What happens when the SQL Azure database reaches Max Size?

104


Explain the categories of stored procedure?

710


Which data type columns are the best candidates for full-text indexing?

755


Describe in brief system database.

741


Explain activity monitors

800


What is ddl command?

703