SQL command not properly ended, concerning with table aliases
问题 I understand that oracle does not allow AS commands for table aliases, so I've been suggested a solution like below. SELECT Temp.avgsale FROM (SELECT o.received, AVG(p.price*d.qty+d.sfee) avgsale FROM orders o, parts p, odetails d GROUP BY o.received) Temp WHERE Temp.avgsale=(SELECT MIN(Temp.avgsale) FROM Temp); However, I am getting the following error when I run it: ERROR at line 4: ORA-00942: table or view does not exist . I also get similar errors when I try to set the alias at the