ratna1234
asked on
Update Query Required
I have two tables Table CLC(IMSI_NO,PUKK) and TABLE PUK(IMSI_NO , PUK1).
Need to update table CLC with PUk1 valueof Table PUK for values matching IMSI_NO in CLC and PUK
Need to update table CLC with PUk1 valueof Table PUK for values matching IMSI_NO in CLC and PUK
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
typo
update
not
udpate
update
not
udpate
try this.
UPDATE CLC c
SET c.PUKK = (SELECT p.PUK1
FROM PUK p
WHERE c.IMSI_NO = p.IMSI_NO)
didn't see sdstuber's post.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I agree with sdstuber.
set pukk = (select puk1 from puk where puk.imsi_no =cls.imsi_no)