If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Db2 Locking for tables in subquery

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-14-11, 12:02
kiran_p kiran_p is offline
Registered User
 
Join Date: Nov 2011
Posts: 1
Db2 Locking for tables in subquery

Hi,
I'm asked to execute below query in CICS environement:

Delete from A
where A.COL1 IN
( SELECT B.COL2 FROM
B INNER JOIN C ON COL2
WHERE B.COL3 = C.COL3 )

Please clarify if the DELETE causes locks on tables B and C
in the subquery. If so at what level of data.

Thanks,
Kiran P.
Reply With Quote
  #2 (permalink)  
Old 11-14-11, 16:55
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Since this seems to be an exercise, how about giving us some details on what you came up yourself. We can then explain if this is right or not (and why not).
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On