I was using this code for an Oracle database and now the same database (accpac) is now been moved to an SQL database. A simple select query works, but not the following query.
select distinct substr(trim(a.a cctid) ,length(trim(a. acctid))-3,4) as vAccount,a.ACCT DESC from GLAMF a
where length(substr(t rim(a.acctid) ,length(trim(a. acctid))-3,4)) >= 4
Any suggestions would be most welcome
select distinct substr(trim(a.a cctid) ,length(trim(a. acctid))-3,4) as vAccount,a.ACCT DESC from GLAMF a
where length(substr(t rim(a.acctid) ,length(trim(a. acctid))-3,4)) >= 4
Any suggestions would be most welcome
Comment