Skip to content

Commit

Permalink
Casting incidence rates as float
Browse files Browse the repository at this point in the history
  • Loading branch information
azimov committed Jul 15, 2024
1 parent 27e6777 commit f2f6961
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inst/sql/sql_server/ComputeIncidenceRates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ SELECT denominator.calendar_year,
denominator.age_group,
concept_name AS gender,
CASE
WHEN numerator.cohort_count IS NOT NULL THEN numerator.cohort_count
ELSE CAST(0 AS INT)
WHEN numerator.cohort_count IS NOT NULL THEN CAST(numerator.cohort_count as FLOAT)
ELSE CAST(0 AS FLOAT)
END AS cohort_count,
person_years
CAST (person_years as FLOAT)
INTO #rates_summary
FROM #denominator denominator
INNER JOIN @vocabulary_database_schema.concept
Expand Down

0 comments on commit f2f6961

Please sign in to comment.