I am trying to divide two columns in a select statement that pulls information from two different views. I keep getting a 0 in the OOS column. I can Add, Subtract, Multiply, but Divide doesn't seem to work. Here is my select statement that works other than the OOS column.
++++++++++++++++++++++++++
select
a.pvvID, a.PVDescr, a."Exception Counts", b."Total Records",(a."Exception Counts" / b."Total Records" ) as OOS
From A3_Top10 a, A3_TotalRecords b
where a.pvvID=b.pvvID
++++++++++++++++++++++++++++
++++++++++++++++++++++++++
select
a.pvvID, a.PVDescr, a."Exception Counts", b."Total Records",(a."Exception Counts" / b."Total Records" ) as OOS
From A3_Top10 a, A3_TotalRecords b
where a.pvvID=b.pvvID
++++++++++++++++++++++++++++