I have a simple query below that isnt giving me the results i need or not working at all. The query ran but it made null the wrong field
Table and field to be updated below
table = Master417DocLis t
field = DeaNumber
Table to update from below
table = IMSxportwCATSan dSLNlinked2Mast er
field = dea#
query below
UPDATE Master417DocLis t
SET Master417DocLis t.DeaNumber = (select IMSxportwCATSan dSLNlinked2Mast er.dea# from IMSxportwCATSan dSLNlinked2Mast er where Master417DocLis t.lastname = IMSxportwCATSan dSLNlinked2Mast er.[last name]
and Master417DocLis t.firstname = IMSxportwCATSan dSLNlinked2Mast er.[first name]
and Master417DocLis t.deaNumber is null)
it made Master417DocLis t.deaNumber = null instead of copying out from IMSxportwCATSan dSLNlinked2Mast er.dea#.
Thank you in advance!
EEEEE
Table and field to be updated below
table = Master417DocLis t
field = DeaNumber
Table to update from below
table = IMSxportwCATSan dSLNlinked2Mast er
field = dea#
query below
UPDATE Master417DocLis t
SET Master417DocLis t.DeaNumber = (select IMSxportwCATSan dSLNlinked2Mast er.dea# from IMSxportwCATSan dSLNlinked2Mast er where Master417DocLis t.lastname = IMSxportwCATSan dSLNlinked2Mast er.[last name]
and Master417DocLis t.firstname = IMSxportwCATSan dSLNlinked2Mast er.[first name]
and Master417DocLis t.deaNumber is null)
it made Master417DocLis t.deaNumber = null instead of copying out from IMSxportwCATSan dSLNlinked2Mast er.dea#.
Thank you in advance!
EEEEE
Comment