爲什麼這項工作ORA-00979:不是GROUP BY表達式
SELECT DISTINCT FIRSTNAME, LASTNAME
FROM books, CUSTOMERS, orders, orderitems
WHERE STATE IN('FL ', 'GA')
GROUP BY orders.order#, firstname, lastname
HAVING SUM(retail*quantity) > 80
但當firstname, lastname
從group by
刪除了沒有?
ORA-00979:不是GROUP BY表達式
世界你爲什麼不有任何連接條件? – 2011-04-07 23:52:14