ibm-information-center/dist/eclipse/plugins/i5OS.ic.sqlp_5.4.0.1/rbafydeleterules.htm

355 lines
24 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="Example: DELETE cascade rule" />
<meta name="DC.subject" content="constraint, referential, delete rules example, DELETE statement, delete rules example, examples" />
<meta name="keywords" content="constraint, referential, delete rules example, DELETE statement, delete rules example, examples" />
<meta name="DC.Relation" scheme="URI" content="rbafyrfdeleting.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafysamptblx.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbafydeleterules" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Example: DELETE cascade rule</title>
</head>
<body id="rbafydeleterules"><a name="rbafydeleterules"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: DELETE cascade rule</h1>
<div><div class="section"><p>Deleting a department from the DEPARTMENT table sets WORKDEPT
(in the EMPLOYEE table) to null for every employee assigned to that department.
Consider the following DELETE statement: </p>
<pre> <strong>DELETE FROM</strong> CORPDATA.DEPARTMENT
<strong>WHERE</strong> DEPTNO = 'E11'</pre>
</div>
<div class="section"><p>Given the tables and the data in the <a href="rbafysamptblx.htm">DB2 UDB for iSeries sample tables</a>,
one row is deleted from table DEPARTMENT, and table EMPLOYEE is updated to
set the value of WORKDEPT to its default wherever the value was 'E11'. A question
mark ('?') in the sample data below reflects the null value. The results appear
as follows:</p>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="1" rules="rows"><caption>Table 1. DEPARTMENT table. Contents
of the table after the DELETE statement is complete.</caption><thead align="left"><tr><th valign="top" width="16.666666666666664%" id="d0e57">DEPTNO</th>
<th valign="top" width="50%" id="d0e59">DEPTNAME</th>
<th valign="top" width="16.666666666666664%" id="d0e61">MGRNO</th>
<th valign="top" width="16.666666666666664%" id="d0e63">ADMRDEPT</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">A00</td>
<td valign="top" width="50%" headers="d0e59 ">SPIFFY COMPUTER SERVICE DIV.</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">000010</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">A00</td>
</tr>
<tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">B01</td>
<td valign="top" width="50%" headers="d0e59 ">PLANNING</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">000020</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">A00</td>
</tr>
<tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">C01</td>
<td valign="top" width="50%" headers="d0e59 ">INFORMATION CENTER</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">000030</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">A00</td>
</tr>
<tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">D01</td>
<td valign="top" width="50%" headers="d0e59 ">DEVELOPMENT CENTER</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">?</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">A00</td>
</tr>
<tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">D11</td>
<td valign="top" width="50%" headers="d0e59 ">MANUFACTURING SYSTEMS</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">000060</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">D01</td>
</tr>
<tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">D21</td>
<td valign="top" width="50%" headers="d0e59 ">ADMINISTRATION SYSTEMS</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">000070</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">D01</td>
</tr>
<tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">E01</td>
<td valign="top" width="50%" headers="d0e59 ">SUPPORT SERVICES</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">000050</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">A00</td>
</tr>
<tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">E21</td>
<td valign="top" width="50%" headers="d0e59 ">SOFTWARE SUPPORT</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">000100</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">E01</td>
</tr>
<tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">F22</td>
<td valign="top" width="50%" headers="d0e59 ">BRANCH OFFICE F2</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">?</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">E01</td>
</tr>
<tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">G22</td>
<td valign="top" width="50%" headers="d0e59 ">BRANCH OFFICE G2</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">?</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">E01</td>
</tr>
<tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">H22</td>
<td valign="top" width="50%" headers="d0e59 ">BRANCH OFFICE H2</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">?</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">E01</td>
</tr>
<tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">I22</td>
<td valign="top" width="50%" headers="d0e59 ">BRANCH OFFICE I2</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">?</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">E01</td>
</tr>
<tr><td valign="top" width="16.666666666666664%" headers="d0e57 ">J22</td>
<td valign="top" width="50%" headers="d0e59 ">BRANCH OFFICE J2</td>
<td valign="top" width="16.666666666666664%" headers="d0e61 ">?</td>
<td valign="top" width="16.666666666666664%" headers="d0e63 ">E01</td>
</tr>
</tbody>
</table>
</div>
<div class="section"><p>Note that there were no cascaded delete operations
in the DEPARTMENT table because no department reported to department 'E11'.</p>
</div>
<div class="section"><p>Below are snapshots of one affected portion of the EMPLOYEE table
before and after the DELETE statement is completed.</p>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="1" rules="rows"><caption>Table 2. Partial EMPLOYEE table. Partial
contents before the DELETE statement.</caption><thead align="left"><tr><th align="left" valign="bottom" width="14.921465968586386%" id="d0e204">EMPNO</th>
<th align="left" valign="bottom" width="14.921465968586386%" id="d0e206">FIRSTNME</th>
<th align="left" valign="bottom" width="6.020942408376963%" id="d0e208">MI</th>
<th align="left" valign="bottom" width="15.968586387434556%" id="d0e210">LASTNAME</th>
<th align="left" valign="bottom" width="12.827225130890053%" id="d0e212">WORKDEPT</th>
<th align="left" valign="bottom" width="12.827225130890053%" id="d0e214">PHONENO</th>
<th align="left" valign="bottom" width="22.5130890052356%" id="d0e216">HIREDATE</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="14.921465968586386%" headers="d0e204 ">000230</td>
<td align="left" valign="top" width="14.921465968586386%" headers="d0e206 ">JAMES</td>
<td align="left" valign="top" width="6.020942408376963%" headers="d0e208 ">J</td>
<td align="left" valign="top" width="15.968586387434556%" headers="d0e210 ">JEFFERSON</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e212 ">D21</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e214 ">2094</td>
<td align="left" valign="top" width="22.5130890052356%" headers="d0e216 ">1966-11-21</td>
</tr>
<tr><td align="left" valign="top" width="14.921465968586386%" headers="d0e204 ">000240</td>
<td align="left" valign="top" width="14.921465968586386%" headers="d0e206 ">SALVATORE</td>
<td align="left" valign="top" width="6.020942408376963%" headers="d0e208 ">M</td>
<td align="left" valign="top" width="15.968586387434556%" headers="d0e210 ">MARINO</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e212 ">D21</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e214 ">3780</td>
<td align="left" valign="top" width="22.5130890052356%" headers="d0e216 ">1979-12-05</td>
</tr>
<tr><td align="left" valign="top" width="14.921465968586386%" headers="d0e204 ">000250</td>
<td align="left" valign="top" width="14.921465968586386%" headers="d0e206 ">DANIEL</td>
<td align="left" valign="top" width="6.020942408376963%" headers="d0e208 ">S</td>
<td align="left" valign="top" width="15.968586387434556%" headers="d0e210 ">SMITH</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e212 ">D21</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e214 ">0961</td>
<td align="left" valign="top" width="22.5130890052356%" headers="d0e216 ">1960-10-30</td>
</tr>
<tr><td align="left" valign="top" width="14.921465968586386%" headers="d0e204 ">000260</td>
<td align="left" valign="top" width="14.921465968586386%" headers="d0e206 ">SYBIL</td>
<td align="left" valign="top" width="6.020942408376963%" headers="d0e208 ">P</td>
<td align="left" valign="top" width="15.968586387434556%" headers="d0e210 ">JOHNSON</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e212 ">D21</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e214 ">8953</td>
<td align="left" valign="top" width="22.5130890052356%" headers="d0e216 ">1975-09-11</td>
</tr>
<tr><td align="left" valign="top" width="14.921465968586386%" headers="d0e204 ">000270</td>
<td align="left" valign="top" width="14.921465968586386%" headers="d0e206 ">MARIA</td>
<td align="left" valign="top" width="6.020942408376963%" headers="d0e208 ">L</td>
<td align="left" valign="top" width="15.968586387434556%" headers="d0e210 ">PEREZ</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e212 ">D21</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e214 ">9001</td>
<td align="left" valign="top" width="22.5130890052356%" headers="d0e216 ">1980-09-30</td>
</tr>
<tr><td align="left" valign="top" width="14.921465968586386%" headers="d0e204 ">000280</td>
<td align="left" valign="top" width="14.921465968586386%" headers="d0e206 ">ETHEL</td>
<td align="left" valign="top" width="6.020942408376963%" headers="d0e208 ">R</td>
<td align="left" valign="top" width="15.968586387434556%" headers="d0e210 ">SCHNEIDER</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e212 ">E11</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e214 ">0997</td>
<td align="left" valign="top" width="22.5130890052356%" headers="d0e216 ">1967-03-24</td>
</tr>
<tr><td align="left" valign="top" width="14.921465968586386%" headers="d0e204 ">000290</td>
<td align="left" valign="top" width="14.921465968586386%" headers="d0e206 ">JOHN</td>
<td align="left" valign="top" width="6.020942408376963%" headers="d0e208 ">R</td>
<td align="left" valign="top" width="15.968586387434556%" headers="d0e210 ">PARKER</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e212 ">E11</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e214 ">4502</td>
<td align="left" valign="top" width="22.5130890052356%" headers="d0e216 ">1980-05-30</td>
</tr>
<tr><td align="left" valign="top" width="14.921465968586386%" headers="d0e204 ">000300</td>
<td align="left" valign="top" width="14.921465968586386%" headers="d0e206 ">PHILIP</td>
<td align="left" valign="top" width="6.020942408376963%" headers="d0e208 ">X</td>
<td align="left" valign="top" width="15.968586387434556%" headers="d0e210 ">SMITH</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e212 ">E11</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e214 ">2095</td>
<td align="left" valign="top" width="22.5130890052356%" headers="d0e216 ">1972-06-19</td>
</tr>
<tr><td align="left" valign="top" width="14.921465968586386%" headers="d0e204 ">000310</td>
<td align="left" valign="top" width="14.921465968586386%" headers="d0e206 ">MAUDE</td>
<td align="left" valign="top" width="6.020942408376963%" headers="d0e208 ">F</td>
<td align="left" valign="top" width="15.968586387434556%" headers="d0e210 ">SETRIGHT</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e212 ">E11</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e214 ">3332</td>
<td align="left" valign="top" width="22.5130890052356%" headers="d0e216 ">1964-09-12</td>
</tr>
<tr><td align="left" valign="top" width="14.921465968586386%" headers="d0e204 ">000320</td>
<td align="left" valign="top" width="14.921465968586386%" headers="d0e206 ">RAMLAL</td>
<td align="left" valign="top" width="6.020942408376963%" headers="d0e208 ">V</td>
<td align="left" valign="top" width="15.968586387434556%" headers="d0e210 ">MEHTA</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e212 ">E21</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e214 ">9990</td>
<td align="left" valign="top" width="22.5130890052356%" headers="d0e216 ">1965-07-07</td>
</tr>
<tr><td align="left" valign="top" width="14.921465968586386%" headers="d0e204 ">000330</td>
<td align="left" valign="top" width="14.921465968586386%" headers="d0e206 ">WING</td>
<td align="left" valign="top" width="6.020942408376963%" headers="d0e208 ">&nbsp;</td>
<td align="left" valign="top" width="15.968586387434556%" headers="d0e210 ">LEE</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e212 ">E21</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e214 ">2103</td>
<td align="left" valign="top" width="22.5130890052356%" headers="d0e216 ">1976-02-23</td>
</tr>
<tr><td align="left" valign="top" width="14.921465968586386%" headers="d0e204 ">000340</td>
<td align="left" valign="top" width="14.921465968586386%" headers="d0e206 ">JASON</td>
<td align="left" valign="top" width="6.020942408376963%" headers="d0e208 ">R</td>
<td align="left" valign="top" width="15.968586387434556%" headers="d0e210 ">GOUNOT</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e212 ">E21</td>
<td align="left" valign="top" width="12.827225130890053%" headers="d0e214 ">5696</td>
<td align="left" valign="top" width="22.5130890052356%" headers="d0e216 ">1947-05-05</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="1" rules="rows"><caption>Table 3. Partial EMPLOYEE table. Partial contents after the DELETE statement.</caption><thead align="left"><tr><th align="left" valign="bottom" width="15.143603133159269%" id="d0e413">EMPNO</th>
<th align="left" valign="bottom" width="15.143603133159269%" id="d0e415">FIRSTNME</th>
<th align="left" valign="bottom" width="6.005221932114883%" id="d0e417">MI</th>
<th align="left" valign="bottom" width="15.926892950391643%" id="d0e419">LASTNAME</th>
<th align="left" valign="bottom" width="15.143603133159269%" id="d0e421">WORKDEPT</th>
<th align="left" valign="bottom" width="13.577023498694519%" id="d0e423">PHONENO</th>
<th align="left" valign="bottom" width="19.06005221932115%" id="d0e425">HIREDATE</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="15.143603133159269%" headers="d0e413 ">000230</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e415 ">JAMES</td>
<td align="left" valign="top" width="6.005221932114883%" headers="d0e417 ">J</td>
<td align="left" valign="top" width="15.926892950391643%" headers="d0e419 ">JEFFERSON</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e421 ">D21</td>
<td align="left" valign="top" width="13.577023498694519%" headers="d0e423 ">2094</td>
<td align="left" valign="top" width="19.06005221932115%" headers="d0e425 ">1966-11-21</td>
</tr>
<tr><td align="left" valign="top" width="15.143603133159269%" headers="d0e413 ">000240</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e415 ">SALVATORE</td>
<td align="left" valign="top" width="6.005221932114883%" headers="d0e417 ">M</td>
<td align="left" valign="top" width="15.926892950391643%" headers="d0e419 ">MARINO</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e421 ">D21</td>
<td align="left" valign="top" width="13.577023498694519%" headers="d0e423 ">3780</td>
<td align="left" valign="top" width="19.06005221932115%" headers="d0e425 ">1979-12-05</td>
</tr>
<tr><td align="left" valign="top" width="15.143603133159269%" headers="d0e413 ">000250</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e415 ">DANIEL</td>
<td align="left" valign="top" width="6.005221932114883%" headers="d0e417 ">S</td>
<td align="left" valign="top" width="15.926892950391643%" headers="d0e419 ">SMITH</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e421 ">D21</td>
<td align="left" valign="top" width="13.577023498694519%" headers="d0e423 ">0961</td>
<td align="left" valign="top" width="19.06005221932115%" headers="d0e425 ">1960-10-30</td>
</tr>
<tr><td align="left" valign="top" width="15.143603133159269%" headers="d0e413 ">000260</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e415 ">SYBIL</td>
<td align="left" valign="top" width="6.005221932114883%" headers="d0e417 ">P</td>
<td align="left" valign="top" width="15.926892950391643%" headers="d0e419 ">JOHNSON</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e421 ">D21</td>
<td align="left" valign="top" width="13.577023498694519%" headers="d0e423 ">8953</td>
<td align="left" valign="top" width="19.06005221932115%" headers="d0e425 ">1975-09-11</td>
</tr>
<tr><td align="left" valign="top" width="15.143603133159269%" headers="d0e413 ">000270</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e415 ">MARIA</td>
<td align="left" valign="top" width="6.005221932114883%" headers="d0e417 ">L</td>
<td align="left" valign="top" width="15.926892950391643%" headers="d0e419 ">PEREZ</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e421 ">D21</td>
<td align="left" valign="top" width="13.577023498694519%" headers="d0e423 ">9001</td>
<td align="left" valign="top" width="19.06005221932115%" headers="d0e425 ">1980-09-30</td>
</tr>
<tr><td align="left" valign="top" width="15.143603133159269%" headers="d0e413 ">000280</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e415 ">ETHEL</td>
<td align="left" valign="top" width="6.005221932114883%" headers="d0e417 ">R</td>
<td align="left" valign="top" width="15.926892950391643%" headers="d0e419 ">SCHNEIDER</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e421 ">?</td>
<td align="left" valign="top" width="13.577023498694519%" headers="d0e423 ">0997</td>
<td align="left" valign="top" width="19.06005221932115%" headers="d0e425 ">1967-03-24</td>
</tr>
<tr><td align="left" valign="top" width="15.143603133159269%" headers="d0e413 ">000290</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e415 ">JOHN</td>
<td align="left" valign="top" width="6.005221932114883%" headers="d0e417 ">R</td>
<td align="left" valign="top" width="15.926892950391643%" headers="d0e419 ">PARKER</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e421 ">?</td>
<td align="left" valign="top" width="13.577023498694519%" headers="d0e423 ">4502</td>
<td align="left" valign="top" width="19.06005221932115%" headers="d0e425 ">1980-05-30</td>
</tr>
<tr><td align="left" valign="top" width="15.143603133159269%" headers="d0e413 ">000300</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e415 ">PHILIP</td>
<td align="left" valign="top" width="6.005221932114883%" headers="d0e417 ">X</td>
<td align="left" valign="top" width="15.926892950391643%" headers="d0e419 ">SMITH</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e421 ">?</td>
<td align="left" valign="top" width="13.577023498694519%" headers="d0e423 ">2095</td>
<td align="left" valign="top" width="19.06005221932115%" headers="d0e425 ">1972-06-19</td>
</tr>
<tr><td align="left" valign="top" width="15.143603133159269%" headers="d0e413 ">000310</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e415 ">MAUDE</td>
<td align="left" valign="top" width="6.005221932114883%" headers="d0e417 ">F</td>
<td align="left" valign="top" width="15.926892950391643%" headers="d0e419 ">SETRIGHT</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e421 ">?</td>
<td align="left" valign="top" width="13.577023498694519%" headers="d0e423 ">3332</td>
<td align="left" valign="top" width="19.06005221932115%" headers="d0e425 ">1964-09-12</td>
</tr>
<tr><td align="left" valign="top" width="15.143603133159269%" headers="d0e413 ">000320</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e415 ">RAMLAL</td>
<td align="left" valign="top" width="6.005221932114883%" headers="d0e417 ">V</td>
<td align="left" valign="top" width="15.926892950391643%" headers="d0e419 ">MEHTA</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e421 ">E21</td>
<td align="left" valign="top" width="13.577023498694519%" headers="d0e423 ">9990</td>
<td align="left" valign="top" width="19.06005221932115%" headers="d0e425 ">1965-07-07</td>
</tr>
<tr><td align="left" valign="top" width="15.143603133159269%" headers="d0e413 ">000330</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e415 ">WING</td>
<td align="left" valign="top" width="6.005221932114883%" headers="d0e417 ">&nbsp;</td>
<td align="left" valign="top" width="15.926892950391643%" headers="d0e419 ">LEE</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e421 ">E21</td>
<td align="left" valign="top" width="13.577023498694519%" headers="d0e423 ">2103</td>
<td align="left" valign="top" width="19.06005221932115%" headers="d0e425 ">1976-02-23</td>
</tr>
<tr><td align="left" valign="top" width="15.143603133159269%" headers="d0e413 ">000340</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e415 ">JASON</td>
<td align="left" valign="top" width="6.005221932114883%" headers="d0e417 ">R</td>
<td align="left" valign="top" width="15.926892950391643%" headers="d0e419 ">GOUNOT</td>
<td align="left" valign="top" width="15.143603133159269%" headers="d0e421 ">E21</td>
<td align="left" valign="top" width="13.577023498694519%" headers="d0e423 ">5696</td>
<td align="left" valign="top" width="19.06005221932115%" headers="d0e425 ">1947-05-05</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafyrfdeleting.htm" title="If a table has a primary key but no dependents, the DELETE statement operates as it does without referential constraints. The same is true if a table has only foreign keys, but no primary key. If a table has a primary key and dependent tables, DELETE deletes or updates rows according to the delete rules specified.">Delete from tables with referential constraints</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rbafysamptblx.htm" title="This topic contains the sample tables referred to and used in this topic and the SQL Reference topic collection.">DB2 UDB for iSeries sample tables</a></div>
</div>
</div>
</body>
</html>