MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » September 2012

Re: finding duplicates via sql-help



fixed

Want the detail also? Then try this:
select *
from qtemp/test
where TRIM( LEADING '#' FROM STREET) in (
SELECT TRIM( LEADING '#' FROM STREET)
FROM QTEMP/TEST
GROUP BY TRIM( LEADING '#' FROM STREET)
HAVING COUNT(*)>1)


Rob Berendt





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact