Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

LIVE SQL Error

Manuel SantoyoMar 5 2025

attempting to complete an assignment for a class learning SQL, we have to run commands via LIVE SQL

The question is as follows:

List all information for each order item. Include an item total, which can be calculated by multiplying the Quantity and Paideach columns. Use a column alias for the calculated value to show the heading “Item Total” in the output.

So my first thoughts would be the following statement

SELECT *, Quantity*Paideach AS “Item Total”

FROM orderitems;

and i get the following error message

ORA-00923: FROM keyword not found where expected

independently the * and Quantity*Paideach AS “Item Total” work perfectly fine, i only get the error message when putting them together

any thoughts?

This post has been answered by ChrisFisher on Mar 5 2025
Jump to Answer
Comments
Post Details
Added on Mar 5 2025
6 comments
368 views