Je hebt JOIN
gesplitst syntaxis tussen tabellen met comma
die deze fout veroorzaakte, dus je moet je sql aanpassen. Probeer dit, kan werken;)
CREATE OR REPLACE VIEW VW_INVOICES
AS
SELECT INVOICE_LINE_ITEM.INVOICE_ID, INVOICE.SALESPERSON_ID,
SALESPERSON.SALESPERSON_NAME, SALESPERSON.COMMISSION,
INVENTORY.ITEM_NUM, INVENTORY.INV_QUANTITY,
INVOICE.CUSTOMER_ID, CUSTOMER.CUSTOMER_BALANCE
FROM INVOICE_LINE_ITEM
JOIN INVOICE ON INVOICE.INVOICE_ID = INVOICE_LINE_ITEM.INVOICE_ID
JOIN SALESPERSON ON SALESPERSON.SALESPERSON_ID = INVOICE.SALESPERSON_ID
JOIN INVENTORY ON INVOICE.ITEM_NUM = INVENTORY.ITEM_NUM
JOIN CUSTOMER ON CUSTOMER.CUSTOMER_ID = INVOICE.CUSTOMER_ID;
Over orakel JOIN
, zie deze wordt lid
, of je kunt gewoon where
. gebruiken clausule in plaats van JOIN