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)
 duplicate fields

Author  Topic 

harish_d_2001
Starting Member

1 Post

Posted - 2005-10-11 : 12:11:31
i have to select only 1 record which has exactly 1 duplicate, ie., only 1 field has duplicates and i have to select the records once for which the duplicates is 2 and if it has more jus ignore.

X002548
Not Just a Number

15586 Posts

Posted - 2005-10-11 : 12:55:54
We're going to need some more info to help you.

Read the hint link below and post some more details.



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page

AjarnMark
SQL Slashing Gunting Master

3246 Posts

Posted - 2005-10-11 : 13:18:29
Also read up on the GROUP BY and HAVING clauses in BOL.

---------------------------
EmeraldCityDomains.com
Go to Top of Page
   

- Advertisement -