Link to home
Start Free TrialLog in
Avatar of Vaalar
Vaalar

asked on

Update with 2 tables

Hi,
I`ve got 2 tables: first - prod, second - custo
table prod
idProd(int)          dest( varchar )
8921                     t1
3211                     t1
3232                     t2

table custo
idProdWe (int)          dest ( varchar)
8920                           t2
8111
8921
3232
4811                           t1
I need to update records in table custo if there are the same values in columns idProd and IdProdWe. As Update i mean to insert values from dest column to custo table
ASKER CERTIFIED SOLUTION
Avatar of tigin44
tigin44
Flag of Türkiye 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
Avatar of Vaalar
Vaalar

ASKER

Tigin and if i would like to change only this rows where the dest is empty in table custo
SOLUTION
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
Avatar of Vaalar

ASKER

Thx for help