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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 not having duplicate data
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

14 Posts

Posted - 04/24/2007 :  17:59:57  Show Profile  Reply with Quote
I have a table called emails with a field named emailaddress and some emailaddress are entered more than once. I want to be able to list all emailaddress just once. is there an sql statement that I could use to generate this.

Flowing Fount of Yak Knowledge

4614 Posts

Posted - 04/24/2007 :  18:15:21  Show Profile  Reply with Quote
Look in Books Online for DISTINCT and GROUP BY. That should get you going.

Go to Top of Page

Flowing Fount of Yak Knowledge

2706 Posts

Posted - 04/24/2007 :  21:29:36  Show Profile  Reply with Quote
One question ?

Why is the info in that table not unique ???
Go to Top of Page

Patron Saint of Lost Yaks

30421 Posts

Posted - 04/25/2007 :  01:04:51  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Maybe because two spouses can use same email-address?

Peter Larsson
Helsingborg, Sweden
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000