Skip to content

Commit

Permalink
fix column names
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmscholz committed Oct 29, 2024
1 parent df495f0 commit e576407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/sql/SIORGP_PUBLIC_MAIN
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ select 'MetPredict' as project, 'gender_male' as field, (select count(distinct p
union
select 'MetPredict' as project, 'gender_female' as field, (select count(distinct pat_pseudonym) from t2 where gender = 'female') as value
union
select 'MetPredict' as project, '<30' as field, (select count(distinct pat_pseudonym) from t2 where age_at_enrollment <= 30) as value
select 'MetPredict' as project, '<=30' as field, (select count(distinct pat_pseudonym) from t2 where age_at_enrollment <= 30) as value
union
select 'MetPredict' as project, '31-40' as field, (select count(distinct pat_pseudonym) from t2 where age_at_enrollment >= 31 and age_at_enrollment <= 40) as value
union
select 'MetPredict' as project, '41-50' as field, (select count(distinct pat_pseudonym) from t2 where age_at_enrollment >= 41 and age_at_enrollment <= 50) as value
union
select 'MetPredict' as project, '51-60' as field, (select count(distinct pat_pseudonym) from t2 where age_at_enrollment >= 51 and age_at_enrollment <= 60) as value
union
select 'MetPredict' as project, '>61' as field, (select count(distinct pat_pseudonym) from t2 where age_at_enrollment >= 61) as value;
select 'MetPredict' as project, '>=61' as field, (select count(distinct pat_pseudonym) from t2 where age_at_enrollment >= 61) as value;

0 comments on commit e576407

Please sign in to comment.