Click here to Skip to main content
14,267,806 members
Rate this:
Please Sign up or sign in to vote.
HI I have the data- DAta123.d123a,ad123,d123ata

I want to separate the string-123 alone
i want a query to split the string
i want to extract only numeric characters
Posted
Updated 4-Nov-13 19:55pm
v2
Comments
ArunRajendra 5-Nov-13 1:25am
   
Do you mean extract only numeric value or extract 3 characters from right?
Member 9991522 5-Nov-13 1:35am
   
extract 3 charcaters from right
Rate this:
Please Sign up or sign in to vote.

Solution 1

Use RIGHT[^] or SUBSTRING[^] functions
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

SELECT Substring('DAta123',5,7)
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100