Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Almost distinct

Author  Topic 

berinder
Starting Member

18 Posts

Posted - 2001-08-30 : 09:31:26
I'm trying to get almost distinct records, hmm, guess you'll need a better explanation. Ok, i have a 3:party product with BAD normalization. Have a table that looks something similar to this:

Email, Firstname, lastname

We want unique EMAILS, and ONE of the names it's attached to.. Each email could have several name, but we want only one of them :)

some data could look like this:

me@me.com Leif Familyname
you@asite.se Kalle Anka
you@asite.se Donald Duck
you@asite.se Fnatte Anka

I would like the query to give me:
me@me.com Leif FamilyName
you@asite.se Kalle Anka

in that case..

Got me?

   

- Advertisement -