I'm still new to SQL. I found the following statement. I understand the WHERE clause, but what table is getting deleted? Only frl_per_bal, or both tables?
Delete frl_per_bal
FROM frl_per_bal B, frl_trx_delta_temp T
WHERE B.entity_Num = T.entity_num
Delete frl_per_bal
will only delete from that table - data manipulation statements can only affect a single table apart from cascades, triggers and suchlike.
The rows that will be deleted are those returned from the join.
======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.