Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Sql script
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

49 Posts

Posted - 06/27/2013 :  05:09:36  Show Profile  Reply with Quote

i have following data.

'ÿ9998r9998i4~085.2 : Cutaneous leshmaniasis, Asian desert ÿ9999r9999i3~153.2 : Neoplasm, malignant, of colon, descending colon ÿ9999r9999i2~023.3 : BRUCELLA CANIS ÿ9998r9998i3~085.2 : Asian desert cutaneous leshmaniasis ÿ8888r8888i5~1119F : INITIAL EVAL FOR CONDITIONücertified ÿ8888r8888i3~1110F : PAT LFT INPAT FACE W/IN 60 DAYSünoncertified ÿ9997r9997i3~085.2 : Leshmaniasis, cutaneous, Asian desert ÿ9998r9998i2~023.3 : Infection due to Brucella canis ÿ8888r8888i4~1111F : DISCHARGE MED/CURRENT MED MERGEücertified ÿ8888r8888i2~11100 : BIOPSY SKIN LESIONüpending ÿ9997r9997i2~023.3 : Brucella canis infection ' TableName Diagnosis completedflag 1.

But i need to delete from 'ü' to 'ÿ' .

for example: PAT LFT INPAT FACE W/IN 60 DAYSünoncertified ÿ9997r9997i3~085.2
output:PAT LFT INPAT FACE W/IN 60 DAYS 9997r9997i3~085.2

please any one giude me.

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 06/27/2013 :  05:14:08  Show Profile  Reply with Quote
use something like

SELECT STUFF(field,CHARINDEX('ü',field),CHARINDEX('ÿ',field,CHARINDEX('ü',field))-CHARINDEX('ü',field) +1,'')
FROM table

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000