select stor_id, ord_num , count(*) as 'Num of Dups' from pubs.dbo.sales group by stor_id, ord_num having count(*) > 1