I used this in a Where clause:
ps.patient_status_id not in ('PS150720QADP', 'PS155M3NI31J')
and later I found out that ps.patient_status_id = ''
weren't included in the dataset.
I went to SQL Help and looked up IN but I didn't see anything about that.
Now I have changed it to this:
(ps.patient_status_id not in ('PS150720QADP', 'PS155M3NI31J')
or isnull(ps.patient_status_id, '') = ''
or ps.patient_status_id = '')
I thought I would get anything returned that was not in the list. Can anyone explain why that was not true? the patient_status_id is a foreign key from another table if that matters. The data type is char.
Thank you
ps.patient_status_id not in ('PS150720QADP', 'PS155M3NI31J')
and later I found out that ps.patient_status_id = ''
weren't included in the dataset.
I went to SQL Help and looked up IN but I didn't see anything about that.
Now I have changed it to this:
(ps.patient_status_id not in ('PS150720QADP', 'PS155M3NI31J')
or isnull(ps.patient_status_id, '') = ''
or ps.patient_status_id = '')
I thought I would get anything returned that was not in the list. Can anyone explain why that was not true? the patient_status_id is a foreign key from another table if that matters. The data type is char.
Thank you