A highly motivated and ambitious individual able to give timely and accurate advice, guidance, support and training to team members and individuals. Having the ability to work with the minimum of supervision whilst leading a team. Having a proven ability to lead by example, consistently hit targets, improves best practices and organizes time efficiently.
Wednesday, 10 December 2014
Eliminating Duplicates from the table
Source:
ROWID is the pseudo column,which is unique for every row.Based on this rowid the record can be eliminated.
Query:
DELETE FROM DUP_DEL
WHERE ROWID
NOT IN
(
SELECT MAX(ROWID) FROM DUP_DEL GROUP BY EMPNO
);
This calculates the maximum ROWID and deletes the rows which are not in the maximum ROWID.
After Delete:
ROWID is the pseudo column,which is unique for every row.Based on this rowid the record can be eliminated.
Query:
DELETE FROM DUP_DEL
WHERE ROWID
NOT IN
(
SELECT MAX(ROWID) FROM DUP_DEL GROUP BY EMPNO
);
This calculates the maximum ROWID and deletes the rows which are not in the maximum ROWID.
After Delete:
Subscribe to:
Posts (Atom)