I am attempting to get two counts and then divide those two counts to get the ratio of the items I am counting. I saw this post here and tried that. I am getting an error in my
It's truncating due to integer division. You can perform regular division by casting.
INSERT INTO @TABLE1 SELECT A.NUM, A.DENOM, CAST(A.NUM AS FLOAT)/A.DENOM