Viewing 6 posts - 61 through 66 (of 66 total)
Mohamed, that's the thing. I need them to have Insurance X. An 'Or' would return patients that have Insurance Z only, for example, wouldn't it?
For example.
Bill...
July 14, 2015 at 9:54 am
Wayne...I tried the Alias table angle...still couldn't get it to work
select
HR.MRN MRN
,HR.FIRST_NAME FirstName
...
July 14, 2015 at 9:48 am
I'm not the best at explaining...so here goes nothing...
Basically I'm pulling data on Patients that has Insurance X. But, patients that have that insurance will have other insurances as...
July 14, 2015 at 9:36 am
The Patient Information is in the HR Table and the Insurance is coming from INSCOMP
July 14, 2015 at 9:24 am
Here is the Query
select
[cprsql].dbo.HR.MRN MRN
,[cprsql].dbo.HR.[FIRST_NAME] FirstName
,[cprsql].dbo.HR.[LAST_NAME] LastName
...
July 14, 2015 at 9:13 am
Thanks! So, are you saying something like this?
Select column A, column B, max (case when) as Drug, max (case when) as Reason
From.....
Group by column A, column B
June 24, 2015 at 1:16 pm
Viewing 6 posts - 61 through 66 (of 66 total)