first, to get only the records that have 'duplicates'
in your select statement add
having count(*) > 1 before your group by statement
second, in Oracle sql*plus you can define columns, and you can
define something like levels, sorry it's been too long, so that your
report would...