Simplified scenario:
Table t1
type_cd category_cd (need to populate this column)
abc
def
ghi
jkl
mno
pqr
stu
vwx
Table t2
tbl_id type_cd cat_cd
001 abc COL
002 def STA
003 ghi JDG
004 jkl SAC
005 mno MIN
006 pqr MKJ
007 stu DRG
008 vwx LIU
For each type_cd in Table t1 the category_cd shoud be set to the same value as t2.cat_cd where (t2.type_cd = t1.type_cd)
How do you write a valid update query for this scenario?