1: 2: 3: 4: 5:
SELECT Study, TotalPulled, TotalEntered, CASE WHEN TotalPulled > 0 THEN (CAST(TotalEntered AS FLOAT) / CAST(TotalPulled AS FLOAT)) * 100 ELSE 0 END AS PERCENTAGE FROM scoretable