I can\'t seem to find this question anywhere on Google (or StackOverflow), which really surprised me, so I\'m putting it on here to help others in the same situation.
I
I know this has been answered already, but I also found another alternative that I use as well. I used a CAST on the field that was giving me troubles.
Based on OP's SELECT command:
SELECT acct_no, CAST((market_value/mv_total) AS DECIMAL(14,4)) -- CAST to decimal here
FROM myTable
WHERE NVL(market_value, 0) != 0
AND NVL(mv_total, 0) != 0