I have the set of data in a table. I want to pick only the last 6 digits.
General syntax of the SUBSTRING functionSUBSTRING ( expression ,start , length )
I'm using below query according to my requirement.
SELECT SUBSTRING(VALUE,LEN(VALUE)-6+1,LEN(VALUE)+1) FROM TEST
Great finding dude.keep it up :)
ReplyDeletethanks buddy!
ReplyDelete