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.
| Author |
Topic |
|
mrkalakota
Starting Member
3 Posts |
Posted - 2005-05-23 : 12:17:27
|
| Somebody pls. help me.I have a table called Facility which has Id, Name, City, State, Add1, Add2 columns and Id has a unique constraint.I want Add1, Add2 columns based on the combination of (Name, City, State) having count = 1 if their count is > 1 then I dont need that record.ThanksMadhu |
|
|
JimL
SQL Slinging Yak Ranger
1537 Posts |
Posted - 2005-05-23 : 14:30:39
|
| Are you asking how to get rid of duplicte records based on (Name,City State) ? To display last createdSelect min(ID),count(*) From Facilitygroup by Name,City,Statehaving count(*) > 1JimUsers <> Logic |
 |
|
|
AjarnMark
SQL Slashing Gunting Master
3246 Posts |
|
|
|
|
|
|
|