Part of the problem with retrieving the data is the fact that I don't have a ton of information/tools. I know the tables are big, but don't know the specifics. And the normal queries that I run finish in about 6-7 hours time. Of course these probably could be quicker, but we have not say in...
I am trying to create a table that has the following structure:
SSN,
ICD9
From a table with the following structure:
SSN,
ICD9_1,
ICD9_2,
...,
ICD9_8
The only way I can see accomplishing this now is by using a massive union statement:
SELECT
DISTINCT SSN, ICD9 FROM (
SELECT SSN, ICD9_1 AS...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.