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
What is a primary index?
What are statistics?
What is ms sql server reporting services?
How to list all user names in a database?
Is it possible for a stored procedure to call itself or recursive stored procedure?
If a stored procedure is taking a table data type, how it looks?
How is foreign key related to primary key?
How do we Backup SQL Azure Data?
Difference between 2NF &3NF ?
What is the difference between web edition and business edition?
How to defragment indexes with alter index ... Reorganize?
Equi join and non equi join is possible with sql server?
What is a functions and types in sql server?
What is failover clustering overview?
Can you pass expressions to function parameters?