"
SELECT Supplier_Name, Country, Total_KPI_Score,
(1 - (Total_Past_Due/Total_Non_Compliance_Items)) AS Compliance_Score
FROM srg_data
WHERE Compliance_Score <= 0.5 AND Total_KPI_Score >= 65
ORDER BY Total_KPI_Score DESC
"
My result returns only whole numbers for the calculated field "Compliance_Score".
If I run the same query in Access 2007, the query is executed and the calculated field contains floating values (e.g., 0.333).
I've had to calculate the field explicitly and add it to the data frame prior to running a query with sqldf as a work around. What am I missing?
Many thanks!
Matt