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