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 2008 Forums
 Transact-SQL (2008)
 Help - Proximity between words

Author  Topic 

mario_2013
Starting Member

3 Posts

Posted - 2013-07-03 : 11:33:02
Staff have some records that have that kind of duplicity by name and even social register .. How do I return only one?

Example Records:

ID Name
130805 NEWMANN PEREIRA FANUCHI
75539 X NEWMANN PEREIRA FANUCHI

djj55
Constraint Violating Yak Guru

352 Posts

Posted - 2013-07-03 : 13:23:53
You could do
select max(id) as id, name from mytable group by name


djj
Go to Top of Page
   

- Advertisement -