I have table like below, I want min "Id" record if emp_id is duplicate, with out using "correlate query" or "partition over".
id emp_id emp_name phone# age
1 101 aaa 12345 25
2 101 aaa 34567 30
3 102 bbb 54325 45
Expected output:
id emp_id emp_name phone# age
1 101 aaa 12345 25
3 102 bbb 54325 45
Note: I have done by correlate query