I am having what I am sure an easy solution but I cant seem to find an answer via google. I am trying to calculate a defect rate with an sql server query and it is rounding my answer. The actual rate is 5.3 but it returns 5. How can I stop the query from rounding my answer?
code:
SELECT (sum(qty)/count(job)) as 'Defect Rate'
FROM (
SELECT count(*) as 'qty', job
from tableA
WHERe CreationDate >= '2017-01-01 00:00'
group by Job) as t