Link to home
Start Free TrialLog in
Avatar of Jamil Muammar
Jamil Muammar

asked on

Update table fields from other table by fields

Dear Experts,

How do I update fields in table from other table fields by keys.
Example
Table1 fields are ( Year, Customer, Product, Revenue, Quantity, Region)
I need to update only Revenue & Quantity from Table 2 according to the Keys Year, Customer, Product
Table2 Fields (Year, Customer, Product, Revenue, Quantity )

Thanks
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Take a look at this question asked the other day and see if it helps:
https://www.experts-exchange.com/questions/29095348/Oracle-Update-one-table-from-another-table-with-join.html?anchorAnswerId=42538066#a42538066

Personally, I prefer the MERGE example but the other one should work as well.
ASKER CERTIFIED SOLUTION
Avatar of Sujith
Sujith
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial