Posted by Simon Hayes on 09/28/05 15:04
select InvoiceNumber, count(*) as 'Occurrences' from dbo.MyTable group by InvoiceNumber having count(*) > 1 Simon
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming