Skip to content

Commit

Permalink
Changed 'raw' alias to 'RawEvents'. Fixes keyword collision with Oracle.
Browse files Browse the repository at this point in the history
Fixes #31.
  • Loading branch information
chrisknoll committed Mar 31, 2015
1 parent f79a750 commit f6ed7c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ INSERT INTO @targetTable (cohort_definition_id, subject_id, cohort_start_date, c
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 @EventSort) as ordinal
select RawEvents.*, row_number() over (partition by RawEvents.person_id order by RawEvents.start_date @EventSort) as ordinal
FROM
(
select person_id, start_date, end_date
FROM #PrimaryCriteriaEvents
@additionalCriteriaQuery
) Raw
) RawEvents
) Results
@ResultLimitFilter
;
Expand Down

0 comments on commit f6ed7c2

Please sign in to comment.