Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export query sorts incorrectly #731

Open
clairblacketer opened this issue Jul 7, 2023 · 0 comments
Open

Export query sorts incorrectly #731

clairblacketer opened this issue Jul 7, 2023 · 0 comments

Comments

@clairblacketer
Copy link
Contributor

In some of the export queries, they are ordering on stratum_1. In the cases where stratum_1 is an integer being cast as a varchar, this ordering is occurring incorrectly. This can be corrected by multiplying by 1.0 in the order statement.

Link to example: https://github.com/OHDSI/Achilles/blob/86741da9c8ad74a5be7785d7b9da24aacfa4c09e/inst/sql/sql_server/export/observationperiod/periodsperperson.sql#L1C1-L1C1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant