SELECT TITLE, CONCAT(TO_CHAR(SUM((COST-RETAIL)/COST)*100), '100'), '%')
AS "Markup"
FROM BOOKS
GROUP BY TITLE;
::THE GOAL::
I'm trying to calculate the mark-up for my products (books).
::ZE PROBLEM::
When I try to run the stated SQL, I get the error
ORA-00923: FROM keyword not found where expected
In advance I thank you for any and all input on my issue.
Your parentheses are not balanced I count 4 left and 5 right. This error usually happens when there is a formatting error that prevents the FROM clause from being reached (missing/extra comma, unbalanced bracket, etc)