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


HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY
IN EMP TABLE

Answers were Sorted based on User's Feedback



HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY IN EMP TABLE..

Answer / sanjeev aggarwal

plz reply me at

sanju.agg@gmail.com

Is This Answer Correct ?    1 Yes 0 No

HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY IN EMP TABLE..

Answer / harish

select e1.First_name,e1.salary from emp e1,emp e2 where
e1.ROWID <> e2.ROWID and e1.salary=e2.salary;

Is This Answer Correct ?    1 Yes 0 No

HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY IN EMP TABLE..

Answer / vijay

select *
from emp
where (sal = (select sal from emp
group by sal
having count(sal)>1))

Is This Answer Correct ?    6 Yes 6 No

HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY IN EMP TABLE..

Answer / xyz

Vinay Singh, are apna naam kyun kharab kar rahe ho boss.
Sunil ki query ko modified kar ke reply karate ho.

Is This Answer Correct ?    0 Yes 0 No

HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY IN EMP TABLE..

Answer / madhu sudhan g

select Distinct * from dbo.EMP X
INNER JOIN dbo.EMP Y ON X.salary=Y.salary
AND X.ENAME<>Y.ENAME

Is This Answer Correct ?    0 Yes 0 No

HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY IN EMP TABLE..

Answer / asit

Can someone answer to this. on below query where i want to find same salary in employee table,

SELECT * FROM EMPLOYEE WHERE (SAL IN (SELECT sal FROM empLOYEE GROUP BY sal HAVING COUNT(sal) > 1))

i am getting correct output.

but if i change it to 'COUNT(SAL)>=1' then it prints all the lines from the table.

Is This Answer Correct ?    0 Yes 0 No

HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY IN EMP TABLE..

Answer / sanjeev aggarwal

If there are two salaries are same in a single table then
what we do??
example:-

id salary
s1 1200
s2 1500
s3 1200
s4 1500
s5 1800

now what query we used??

Is This Answer Correct ?    2 Yes 4 No

HOW TO FIND THE EMPLOYEE DETAILS WHO ARE GETTING SAME SALARY IN EMP TABLE..

Answer / kumari

SELECT TOP (3)with ties empsalry
FROM empsalr

order by empsalry desc;

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More SQL Server Interview Questions

What does REVERT do in SQL Server 2005?

0 Answers   HCL,


what's sql server? : Sql server database administration

0 Answers  


what is the difference between procedure and function.

4 Answers   Thomson,


What is the architecture of ms sql reporting service?

0 Answers  


How to truncate the log in sql server 2012? : sql server database administration

0 Answers  


What is after dml trigger?

0 Answers  


What number sorts of privileges are accessible in sql?

0 Answers  


How to sort query output in descending order in ms sql server?

0 Answers  


how can ur insert the emp table

3 Answers   Wipro,


write down the code for "how we delete a table without using of Drop command " ?

7 Answers   CarrizalSoft Technologies, Sonata,


How can we delete Duplicate row in table?

0 Answers   Wipro,


What is the difference between seek predicate and predicate?

0 Answers  


Categories