-4

This is my query for finding matching records, but same salary condition is not working.

I want multiple same city and same salary records

select distinct 
    t1.Name,
    t1.Salary,
    t1.City
from 
    Test t1,  
    test t2 
where
    t1.City = t2.City and 
    t1.Salary <> t2.Salary
huMpty duMpty
  • 14,346
  • 14
  • 60
  • 99

1 Answers1

0

t1.Salary<>t2.Salary should be t1.Salary = t2.Salary

to solve this "But Same Salary Condition Not Working"

Marco Bong
  • 690
  • 4
  • 13