Hi friends,
Here is the table I'm doing the select on
select name, pwd from test
name(varchar) pwd(varchar)
-----------------------------------
Mary At connect
select CAST(datalength(name) AS VARCHAR) + substring (pwd,3,6) from test;
4 conne
But I need the result to be '4 con' (length of test.name + 3rd to 6th character in test.pwd inluding the space)
Please help...
Thank you