I have two tables, say t1 and t2.
t1{
txn_id varchar
status varchar
}
t2{
txn_id varchar
date Date
}
I want to built an update query which will update t1.status='X' with join condition t1.txn_id = t2.txn_id and t2.date < sysdate.
Please let me to build an update query.