Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding Duplicate Text in a column
Message
 
 
To
23/05/2008 11:27:39
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01319211
Message ID:
01319238
Views:
13
>Thanks Sergey, that helps alot to find the dups.
>
>You wouldn't happen to know an easy fix to remove the extra dups from the columns?

Assuming that the first 2 updates happen on the same date and you want to keep the first one, try
SELECT LEFT(Narrative, CHARINDEX(LEFT(Narrative,14), Narrative, 20)-1)
	FROM mytable
	WHERE Narrative LIKE '%the following images were imported%the following images were imported%'
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform