错误代码ORA-00923:找不到FROM关键字
SELECT invoice_no,
item_no
SUM (
invoice_ship_handle
+ invoice_tax
+ invoice_deposit
+ item_unit_price * item_qty_shipped)
AS "Total Item Cost"
FROM invoices_s, items_sold_s
GROUP BY item_no, invoice_no
ORDER BY SUM (
invoice_ship_handle
+ invoice_tax
+ invoice_deposit
+ item_unit_price * item_qty_shipped) DESC;
答案 0 :(得分:0)
您在item_no
和sum
表达式之间缺少逗号:
SELECT invoice_no,
item_no,
-- Here^
SUM (
invoice_ship_handle
+ invoice_tax
+ invoice_deposit
+ item_unit_price * item_qty_shipped)
AS "Total Item Cost"
FROM invoices_s, items_sold_s
GROUP BY item_no, invoice_no
ORDER BY SUM (
invoice_ship_handle
+ invoice_tax
+ invoice_deposit
+ item_unit_price * item_qty_shipped) DESC;