EXPERT RESPONSE
This seems fairly straightforward:
select GLAccountID
, GLAccountDesc
from daTable
where GLAccountID <>
substring(GLAccountDesc from 1 for 4)
Presumably it isn't quite so obvious if you have never
used the SUBSTRING function in a comparison before.
To me, a more interesting solution is this one:
update daTable
set GLAccountDesc =
substring(GLAccountDesc from 5)
Much more satisfying, don't you think? <wink>
|