Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 5th, 2007, 11:23 AM
Registered User
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Exception Report - Show Only Duplicate Records

Im looking for a SQL query or Crystal Reports solution that will allow me to develop and show only those records that are duplicated in our document table in SQL2000 that have the same jobid but different filenames for an exception report.

Any advice would be greatly appreciated.


Old April 6th, 2007, 04:33 AM
Friend of Wrox
Join Date: May 2006
Posts: 246
Thanks: 0
Thanked 0 Times in 0 Posts

select jobid, filename from table1
group by jobid, filename
having count(*) > 1

Similar Threads
Thread Thread Starter Forum Replies Last Post
How Not To Insert Duplicate Records GailCG ASP.NET 2.0 Basics 5 November 25th, 2008 12:19 PM
duplicate records vanitha SQL Server 2000 4 June 2nd, 2007 04:35 PM
duplicate records vanitha Reporting Services 2 May 31st, 2007 01:54 AM
Duplicate records in Crystal Report integrated int shashisatya Crystal Reports 0 February 19th, 2006 10:06 AM
Duplicate Records mrookey Dreamweaver (all versions) 1 April 15th, 2005 11:23 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.