When I run the following SQL update
update FILE1 a
set IJJDSC = (select distinct DJJDSC from FILE2
where DJSTMP = 20140628160729
and DJSTMP = a.ijstmp
and substring(DJJDSC,1,23) = substring(a.iJJDSC,1,23) )
I get Null values not allowed in column or variable IJJDSC
There don't appear to be any null values in DJJDSC and an exception join between FILE1 anf FILE2 produces nothing so I am not sure why the subquery produces null
					update FILE1 a
set IJJDSC = (select distinct DJJDSC from FILE2
where DJSTMP = 20140628160729
and DJSTMP = a.ijstmp
and substring(DJJDSC,1,23) = substring(a.iJJDSC,1,23) )
I get Null values not allowed in column or variable IJJDSC
There don't appear to be any null values in DJJDSC and an exception join between FILE1 anf FILE2 produces nothing so I am not sure why the subquery produces null












Comment