I am trying to update table A with data from table B. I thought I can do something like this
update A set A.DISCOUNT = 3 from INVOICE_ITEMS A join ITEM_PRI
you can use like this :
update INVOICE_ITEMS set DISCOUNT = 3 from (select * from ITEM_PRICE_QUNTITY ) b where INVOICE_ITEMS.ITEM_PRICE_NO = B.ID and INVOICE_ITEMS.INVOICE_ID = 33