From 48c33f864a5322790d63f3e9bd876a8e62443a1e Mon Sep 17 00:00:00 2001 From: Evanette Burrows Date: Thu, 25 Jul 2024 10:46:24 -0400 Subject: [PATCH] Address bugs (#200) * Align insert and select clauses * Add order by for SQL server https://github.com/OHDSI/ETL-Synthea/issues/197 * Update insert_location.sql --- inst/sql/sql_server/cdm_version/v540/insert_location.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/sql/sql_server/cdm_version/v540/insert_location.sql b/inst/sql/sql_server/cdm_version/v540/insert_location.sql index 995e79a..764355a 100644 --- a/inst/sql/sql_server/cdm_version/v540/insert_location.sql +++ b/inst/sql/sql_server/cdm_version/v540/insert_location.sql @@ -11,7 +11,7 @@ zip, location_source_value ) select -row_number() over () as location_id, +row_number() over (order by city,state,zip) as location_id, locations.* from (select distinct