I am miss placing braces in the case statement. Please help me correct it : (CASE WHEN v_cur.order_type != 'STK' AND v_cur.lot_net_cost_flag = 'Y' THEN 0 ELSE ((v_cur.unit_costs_amount * v_cur.line_quantity_ordered) / CASE WHEN v_cur.unit_of_measure_code = 'E' THEN 1 WHEN v_cur.unit_of_measure_code = 'C' THEN 100 WHEN v_cur.unit_of_measure_code = 'M' THEN 1000 ELSE 1 END) v_dt_unit_of_measure_code_val) END v_dt_cost_amount