Suppose we have some employees in each department.we have total 3 departments . Below is the sample source table named 'employee'
emp dept_id salary
A 10 1000
B 10 2000
C 10 3000
D 20 7000
E 20 9000
F 20 8000
G 30 17000
H 30 15000
I 30 30000
j 30 30000
k 30 17000
Here may same salary is exist in same department.
I use Wamp-server which has mysql-5.7.23
And I want to like:
B 10 2000
F 20 8000
G 30 17000