Skip to content

Commit

Permalink
Address bugs (#199)
Browse files Browse the repository at this point in the history
* Align insert and select clauses

* Add order by for SQL server

#197
  • Loading branch information
burrowse authored Jul 24, 2024
1 parent 134c7af commit fae5403
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inst/sql/sql_server/cdm_version/v531/insert_location.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ address_1,
address_2,
city,
state,
zip,
county,
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
Expand Down
2 changes: 1 addition & 1 deletion inst/sql/sql_server/cdm_version/v540/insert_location.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ address_1,
address_2,
city,
state,
zip,
county,
zip,
location_source_value
)
select
Expand Down

0 comments on commit fae5403

Please sign in to comment.