I have two tables.
template table.(templ_id
and obj_id
is primary key)
templ_id obj_id
TP000002 PE554959
TP000003 PE555867
TP000006 PE555102
TP000009 PE554994
TP000009 PE554956
TP000009 PE555176
TP000009 PE555598
TP000009 PE555256
TP000010 PE555297
TP000010 PE555286
Business table.(bsn_no
is primary key)
bsn_no obj_id templ_id
1 PE554959 null
2 PE555867 null
3 PE555102 null
4 PE554994 null
5 PE554956 null
6 PE555176 null
7 PE555598 null
8 PE555256 null
9 PE555297 null
10 PE555286 null
I want to update business tables templ_id
from template table's templ_id
based on the obj_id
using a single update query.