my table has the following:
IDLogin1abcdefghijk\smith02abcdefghijk\roberts03abcdefghijk\canton04abcdefghijk\mortenson05abcdefghijk\anderson0I need to see only the name, without the 0.
This following removes the first 12 characters:
select substring(loginid, 12, 11) from DBSec;
and this removes the last character
select left([LoginID], len([LoginID])-1) from DBSec;
HOW DO I COMBINE THE BOTH to get, for example:
IDNo Column Name1smith2roberts3canton4mortenson5anderson