Invantive Data Hub (20.1.532-BETA+1770):
itgensql056:
Syntax error between the two '’ on line 4, column 3:
–– Select all part…2021 and 2020.–use***
Error: no viable alternative at input ‘use’.
-
-- Select all partitions of book year 2021 and 2020.
--
use
select CODE
, 'av'
from SYSTEMPARTITIONS@DataDictionary
where code in
( select code from SYSTEMPARTITIONS@DataDictionary where code like '2019%'
union
select code from SYSTEMPARTITIONS@DataDictionary where code like '2020%'
union
select code from SYSTEMPARTITIONS@DataDictionary where code like '2021%'
)
--
-- Copy ledgers.
--
create or replace table ledger@sql
as
select *
from ledger@av
--
-- Copy transactions.
--
create or replace table transact@sql
as
select *
from transact@av