sql - Update columns In a Teradata Table using data from another table -


i have seen many posts , followed syntax write below query. still given error "column/parameter wm_ad_hoc.temp.temp not exist"

please assist in figuring out doing wrong here.

update temp    wm_ad_hoc.owned_item_store_dly temp,         wm_ad_hoc.owned_item_store_dly_util util  set    temp.vendor_stock_id = util. vendor_stock_id,         temp.on_hand_each_qty = util. on_hand_each_qty,         temp.vendor_stock_id = util.vendor_stock_id   temp. vendor_nbr = util. vendor_nbr  ,    temp.wmi_item_nbr = util.wmi_item_nbr  ,    temp. store_nbr = util. store_nbr  ,    temp.business_date = util.business_date 

you need not qualify set columns. so:

update temp    wm_ad_hoc.owned_item_store_dly temp,         wm_ad_hoc.owned_item_store_dly_util util  set    vendor_stock_id = util.vendor_stock_id,         on_hand_each_qty = util.on_hand_each_qty,         vendor_stock_id = util.vendor_stock_id ... 

Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -