SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

chbala85
Starting Member

49 Posts

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

Hi,
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.

visakh16
Very Important crosS Applying yaK Herder

India
52309 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
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.09 seconds. Powered By: Snitz Forums 2000