I need to obtain the rows which having same column value from the following table, I tried it the following way, but it gives me a single row only.
select *
from employee e
group by e.empsalary
having count(e.empsalary) > 1
Table employee
Please suggest me a way.
SELECT empsalary
and put it inside a nested query likeWHERE empsalary IN (SELECT empsalary ...)