Skip to content

casting source_value#806

Open
wibeasley wants to merge 3 commits into
OHDSI:mainfrom
wibeasley:main
Open

casting source_value#806
wibeasley wants to merge 3 commits into
OHDSI:mainfrom
wibeasley:main

Conversation

@wibeasley

Copy link
Copy Markdown

we had some results have a value of NULL, which was implicitly cast to an int. Then that created a conversion error when stacked/unioned with the varchars.

It's minor, but I also changed the union to union all to improve efficiency for the same result.
https://www.geeksforgeeks.org/sql/union-vs-union-all-in-sql/

the rows will always be different, so there's no point in looking for duplication
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

Successfully merging this pull request may close these issues.

1 participant