Hello,
i need help with following update SQL:
update table1 a set a.IDPHNO = (select b.IRPHNO from table2 b where
a.IDSUNO = b.IRSUNO and b.IRSUNO <> '') where a.IDPHNO<> ''
-> Error: null values not allowed (ID SQL0407)
I also tried following:
update table1 a set a.IDPHNO = (select b.IRPHNO from
table2 b where a.IDSUNO = b.IRSUNO and b.IRPHNO <>'')
where exists
(select * from
table2 b where a.IDSUNO = b.IRSUNO and b.IRPHNO <>'')
-> more than one row (ID SQL0811)
Can someone help?
Thanks, Chatman