Skip to content

Commit

Permalink
Removed 'order by' statement in the insert for analysis_id 1900 as or…
Browse files Browse the repository at this point in the history
…der bys in inserts are not supported by some sql languages.
  • Loading branch information
clairblacketer authored and chrisknoll committed Aug 8, 2017
1 parent 9b028f7 commit 0df6864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/sql/sql_server/Achilles_v5.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7467,7 +7467,7 @@ union
select 'condition_occurrence' as table_name,condition_source_value as source_value, COUNT_BIG(*) as cnt from @cdm_database_schema.condition_occurrence where condition_concept_id = 0 group by condition_source_value
) a
where cnt >= 1 --use other threshold if needed (e.g., 10)
order by a.table_name desc, cnt desc
--order by a.table_name desc, cnt desc
;
--}

Expand Down

0 comments on commit 0df6864

Please sign in to comment.