G
Guest
My query is only returning people that have a business unit number. It does
not return patients where there may not be a business unit with just a blank
value. I want to diaply the ID, Name and Business Unit on report. Business
Unit may or may not be populated. thanks
"SELECT
MDR.PAT_MV.PAT_ID,
MDR.PAT_MV.PAT_FULL_NAME,
BUSINESSUNIT.PAT_GDLN_VAL_TXT
FROM
MDR.PAT_MV,
MDR.PAT_GDLN_VAL_BRIDGE BUSINESSUNIT
WHERE
( MDR.PAT_MV.PAT_DIM_PID=BUSINESSUNIT.PAT_DIM_PID(+)
and BUSINESSUNIT.GDLN_DEF_CTGY_CODE(+)='*'
and BUSINESSUNIT.GDLN_DEF_CODE(+)='MUBU' )
AND ( BUSINESSUNIT.GDLN_DEF_CODE='MUBU' )"
not return patients where there may not be a business unit with just a blank
value. I want to diaply the ID, Name and Business Unit on report. Business
Unit may or may not be populated. thanks
"SELECT
MDR.PAT_MV.PAT_ID,
MDR.PAT_MV.PAT_FULL_NAME,
BUSINESSUNIT.PAT_GDLN_VAL_TXT
FROM
MDR.PAT_MV,
MDR.PAT_GDLN_VAL_BRIDGE BUSINESSUNIT
WHERE
( MDR.PAT_MV.PAT_DIM_PID=BUSINESSUNIT.PAT_DIM_PID(+)
and BUSINESSUNIT.GDLN_DEF_CTGY_CODE(+)='*'
and BUSINESSUNIT.GDLN_DEF_CODE(+)='MUBU' )
AND ( BUSINESSUNIT.GDLN_DEF_CODE='MUBU' )"