Re: Unique Records

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: James Goodwin (jim.goodwin_at_midmichigan.org)
Date: 01/05/05


Date: Wed, 5 Jan 2005 15:13:27 -0500


"Khurram Chaudhary" <khurram@rogers.com> wrote in message
news:evvt7Yq8EHA.4072@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I want to return a result that shows only the records that are unique in a
> particular field. For example:
>
> ISBN Title
> 112 Microsoft XP
> 112 Microsoft XP (Softcover)
> 113 Windows NT
> 114 Windows 2000
>

> Any suggestions?

1. You may want to review your data model. Softcover is not part of the
Title of that book, it is a media for that book.

2. I'm pretty sure that the Hardcover and Softcover editions of a book have
different ISBN numbers, I'm also sure that ISBN numbers are 10 characters
long including a check digit.

3. Select ISBN, Min(Title) from TableName group by ISBN


Quantcast