Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Error in update statement - response (3) by Raja_KT

$
0
0

Maybe you can dont you try with merge into statement?
 
similar to
 
MERGE INTO Department
      USING USING (SELECT .......

FROM contact
WHERE contact_number = ....)  a
on (condition a=b)
WHEN MATCHED THEN UPDATE
      SET budget_amount = nd.Budget_Amount
WHEN NOT MATCHED THEN INSERT
VALUES
(....);
you can remove the insert part if not needed.
Cheers,
Raja
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>