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