SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

jept
Starting Member

USA
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.

Lamprey
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.

-Ryan
Go to Top of Page

afrika
Flowing Fount of Yak Knowledge

Nigeria
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

SwePeso
Patron Saint of Lost Yaks

Sweden
30276 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  
 New 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.08 seconds. Powered By: Snitz Forums 2000