select SUBSTRING (convert(varchar,columnName,103),7,4) ,
SUBSTRING (convert(varchar,columnName,100),1,6) ,
SUBSTRING (convert(varchar,columnName,100),5,2) from tablename
can any one explain me this query
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jul 24, 2014, 4:11 PM
2 characters from the 5th character onwards are then extracted i.e. the day.