dear experts,
i have below table with msg_seqno ,addjobid and job_id. i want to update same job_id against each msg_seqno in AddJobId. how i have to write a query.
is it by correlated query or with simple update query? please write a query.
[TABLE="width: 278"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]MSG_SeqNo[/TD]
[TD] AddJobId[/TD]
[TD] job_ID[/TD]
[/TR]
[TR]
[TD]20160301004811982451[/TD]
[TD] [/TD]
[TD] 1216[/TD]
[/TR]
[TR]
[TD]20160301004812593237[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004812661445[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004812839436[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004824828647[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004900825884[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004921093556[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004921326065[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004938098232[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004939326558[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301005011097547[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301005015327326[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301005025826370[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301005025866153[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301005026343194[/TD]
[TD] [/TD]
[TD] 1216[/TD]
[/TR]
</tbody>[/TABLE]
i have below table with msg_seqno ,addjobid and job_id. i want to update same job_id against each msg_seqno in AddJobId. how i have to write a query.
is it by correlated query or with simple update query? please write a query.
[TABLE="width: 278"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]MSG_SeqNo[/TD]
[TD] AddJobId[/TD]
[TD] job_ID[/TD]
[/TR]
[TR]
[TD]20160301004811982451[/TD]
[TD] [/TD]
[TD] 1216[/TD]
[/TR]
[TR]
[TD]20160301004812593237[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004812661445[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004812839436[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004824828647[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004900825884[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004921093556[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004921326065[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004938098232[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301004939326558[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301005011097547[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301005015327326[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301005025826370[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301005025866153[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]20160301005026343194[/TD]
[TD] [/TD]
[TD] 1216[/TD]
[/TR]
</tbody>[/TABLE]