Ik heb net de BETA versie van de Invantive Query Tool geïnstalleerd (20.1.497) en krijg met onderstaande query de foutmelding
itgeneor335: A required filter is missing.
Zit er een fout in mijn query die ik moet aanpassen na de laatste wijzigingen in Exact?
create or replace table sor@inmemorystorage
as
select sor.* prefix with 'sor_'
, ads.* prefix with 'ads_'
, con.* prefix with 'con_'
from exactonlinerest..SalesOrders@eol sor
join exactonlinerest..addresses@eol ads
on ads.id = sor.deliveryaddress
join exactonlinerest..Contacts@eol con
on con.account = sor.Invoiceto
where sor.DeliveryDate between trunc(sysdate)-40 and trunc(sysdate)
and sor.DeliveryStatus = 12
and sor.warehousecode = 1
--and sor.Ordernumber < 92907
order
by sor.ordernumber
insert into phtestorders@sql
( Orderid
, OrderNumber
, OrderDate
, Deliverydate
, Description
, AddressId
, AccountId
, DeliverToName
, AddressLine1
, AddressLine2
, PostCode
, City
, State
, Country
, EmailAddress
)
select lower(to_char(sor.sor_OrderID)) Orderid
, lower(to_char(sor.sor_Ordernumber)) OrderNumber
, sor.sor_OrderDate OrderDate
, sor.sor_DeliveryDate Deliverydate
, left (sor.sor_Description, 50) Description
, lower(to_char(sor.sor_DeliveryAddress)) AddressId
, lower(to_char(sor.sor_DeliverTo)) AccountId
, left (sor.sor_DeliverToName, 50) DeliverToName
, left (sor.ads_AddressLine1, 50)
, sor.ads_AddressLine2
, sor.ads_Postcode
, sor.ads_City
, sor.ads_State
, sor.ads_Country
, sor.con_Email
from sor@inmemorystorage
create or replace table sle@inmemorystorage
as
select sle.*
from sor@inmemorystorage sor
join exactonlinerest..salesorderLines@eol sle
on sle.orderid = sor.sor_orderid
insert into PHTestOrderLines@sql
( OrderLineID
, OrderID
, OrderNumber
, OrderLineNumber
, ItemID
, ItemCode
, Description
, Quantity
)
select lower(to_char(sle.ID))
, lower(to_char(sle.OrderID))
, lower(to_char(sle.OrderNumber))
, sle.LineNumber
, lower(to_char(sle.Item))
, sle.ItemCode
, sle.Description
, sle.Quantity
from sle@inmemorystorage