I’m using Oracle 10g.
If i have the following duplicate rows (Same Employee with two Employee numbers):
Employee_No Employee_Name ID_NO
----------------------------------------------
0002345 John Debb 100345642
0030988 John Debb 100345642
----------------------------------------------
i want to get the result as:
Employee_No_1 Employee_No_2 Employee Name ID_NO
----------------------------------------------------------------
0002345 0030988 John Debb 100345642
----------------------------------------------------------------
Is it possible to be done in SQL? or it needs PL/SQL? and what would the query be?
Not quite in the format requested, but this will handle the case where there could be more than just 2 duplicates.