In a subquery I only want the line 1 from a list of null, 1,2 and 3, but I keep getting line 1 and null. How can I get only line 1?
thanks!
Code:
(select HOSPICE_DX.PAT_ENC_CSN_ID
, edg.DX_NAME
, HOSPICE_DX.LINE
from HOSPICE_DX
inner join EDG on HOSPICE_DX.HOSPICE_DX_CODED_ID=edg.DX_ID
) hospice on PAT_ENC.PAT_ENC_CSN_ID=hospice.PAT_ENC_CSN_ID and hospice.LINE=1
Comment