Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

UNION Vs MSR - response (12) by vasudev

$
0
0

Hi Dieter,
Thanks for your reply. Now this came into my mind.
Locking table customer for access
Sel c.*,o.*
from customer inner join orders on <conditions>
;Sel c.*,o.*
from customer inner join orders on <conditions>
In this MSR, statement 1 will use access lock on the customer and read lock on orders table. Statement 2 uses read lock on customer and orders table. So, Customer table is locked for read and order table is locked for read.
Please correct me if i am wrong.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>