Du har delat JOIN
syntax mellan tabeller med comma
som orsakade det här felet, så du bör modifiera din sql. Prova detta, kan fungera;)
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;
Om oracle JOIN
, se denna anslutning
, eller så kan du bara använda where
sats istället för JOIN