I entered this:
SELECT COST TO_CHAR(COALESCE (COST, 0), '$99,990.99')
FROM COURSE;
SELECT COST TO_CHAR(NVL(cost, 0), '$99,990.99') COST
FROM COURSE;
Then I get this message:
SELECT COST TO_CHAR(COALESCE (COST, 0), '$99,990.99')
*
ERROR at line 1:
ORA-00923: FROM keyword not found where expected
SELECT COST TO_CHAR(NVL(cost, 0), '$99,990.99') COST
*
ERROR at line 1:
ORA-00923: FROM keyword not found where expected
I am trying to get the costs of the courses, while in a specific format:
COST ------------- $0.00 $1,000.00
Any help would be appreciated