diff --git a/rmd/sqlScripts.Rmd b/rmd/sqlScripts.Rmd index 15b985b..447aea0 100644 --- a/rmd/sqlScripts.Rmd +++ b/rmd/sqlScripts.Rmd @@ -462,10 +462,10 @@ SELECT '', -- e.g. link to source data dictionary '', -- e.g. link to ETL documentation '', -- when the source data was pulled - getdate(), + getdate(), -- or the date of ETL run 'v5.4', vocabulary_version, - 756265 -- OMOP CDM Version 5.4.0 + 756265 -- 'OMOP CDM Version 5.4.0' FROM @cdm_schema.vocabulary WHERE vocabulary_id = 'None'; ``` @@ -478,11 +478,11 @@ The query below will utilize the Visit Concept hierarcy to find the highest-leve ```{sql eval=FALSE, echo=TRUE} SELECT concept_id, concept_name - FROM concept - LEFT JOIN concept_ancestor - ON concept_id=descendant_concept_id - AND ancestor_concept_id!=descendant_concept_id - WHERE domain_id='Visit' - AND standard_concept='S' - AND ancestor_concept_id IS NULL +FROM concept +LEFT JOIN concept_ancestor + ON concept_id=descendant_concept_id + AND ancestor_concept_id!=descendant_concept_id +WHERE domain_id='Visit' + AND standard_concept='S' + AND ancestor_concept_id IS NULL ```