"ORA-00923: FROM keyword not found where expected" Encountered in my oracle query

Tas picture Tas · Mar 21, 2013 · Viewed 15.5k times · Source
      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.

Answer

munch1324 picture munch1324 · Mar 21, 2013

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)