I have to create a report that looks for duplicate values in a particular field. For instance...
Loads VendorInvNo TransDate
----- ----------- ---------
11001 123 4/1/2005
11002 543 4/2/2005
11003 543 4/12/2005
11004 873 4/15/2005
11005 598 4/11/2005
I need to report on the duplicate values in the vendorInvNo field. So, how would I write the t-sql to extract those VendInvNo items that contain the same value.
Thanks
Loads VendorInvNo TransDate
----- ----------- ---------
11001 123 4/1/2005
11002 543 4/2/2005
11003 543 4/12/2005
11004 873 4/15/2005
11005 598 4/11/2005
I need to report on the duplicate values in the vendorInvNo field. So, how would I write the t-sql to extract those VendInvNo items that contain the same value.
Thanks