Hi @Chris_Knoll,
Jon wanted me to let you know the error we were having with oracle on generating cohorts from Circe. I think it’s this:
INSERT INTO @targetTable (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date)
select @cohortDefinitionId as cohort_definition_id, person_id as subject_id, start_date as cohort_start_date, end_date as cohort_end_date
FROM
(
select Raw.*, row_number() over (partition by Raw.person_id order by Raw.start_date ASC) as ordinal
FROM
(
select person_id, start_date, end_date
FROM pbshy0m3PrimaryCriteriaEvents
) Raw
) Results
;
Because raw
is a datatype in Oracle, I think that’s what’s causing a problem.