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

123 lines
6.9 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="Project table (PROJECT)" />
<meta name="abstract" content="The project table describes each project that the business is currently undertaking. Data contained in each row include the project number, name, person responsible, and schedule dates." />
<meta name="description" content="The project table describes each project that the business is currently undertaking. Data contained in each row include the project number, name, person responsible, and schedule dates." />
<meta name="DC.subject" content="examples, table, PROJECT, used in examples, sample tables, UDB for, DB2, iSeries" />
<meta name="keywords" content="examples, table, PROJECT, used in examples, sample tables, UDB for, DB2, iSeries" />
<meta name="DC.Relation" scheme="URI" content="rbafysamptblx.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafyxmpprj.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="rbafystproj" />
<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>Project table (PROJECT)</title>
</head>
<body id="rbafystproj"><a name="rbafystproj"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Project table (PROJECT)</h1>
<div><p>The project table describes each project that the business is currently
undertaking. Data contained in each row include the project number, name,
person responsible, and schedule dates.</p>
<div class="section"><p>The project table is created with the following CREATE TABLE and
ALTER TABLE statements:</p>
<pre><strong>CREATE TABLE</strong> PROJECT
(PROJNO <strong>CHAR</strong>(6) <strong>NOT NULL</strong>,
PROJNAME <strong>VARCHAR</strong>(24) <strong>NOT NULL DEFAULT</strong>,
DEPTNO <strong>CHAR</strong>(3) <strong>NOT NULL</strong>,
RESPEMP <strong>CHAR</strong>(6) <strong>NOT NULL</strong>,
PRSTAFF <strong>DECIMAL</strong>(5,2) ,
PRSTDATE <strong>DATE</strong> ,
PRENDATE <strong>DATE</strong> ,
MAJPROJ <strong>CHAR</strong>(6) ,
<strong>PRIMARY KEY</strong> (PROJNO))
<strong>ALTER TABLE</strong> PROJECT
<strong>ADD FOREIGN KEY</strong> (DEPTNO)
<strong>REFERENCES</strong> DEPARTMENT
<strong>ON DELETE RESTRICT</strong>
<strong>ALTER TABLE</strong> PROJECT
<strong>ADD FOREIGN KEY</strong> (RESPEMP)
<strong>REFERENCES</strong> EMPLOYEE
<strong>ON DELETE RESTRICT</strong>
<strong>ALTER TABLE</strong> PROJECT
<strong>ADD FOREIGN KEY</strong> RPP (MAJPROJ)
<strong>REFERENCES</strong> PROJECT
<strong>ON DELETE CASCADE</strong></pre>
</div>
<div class="section"><p>The following indexes are created:</p>
<pre><strong>CREATE UNIQUE INDEX</strong> XPROJ1
<strong>ON</strong> PROJECT (PROJNO)
<strong>CREATE INDEX</strong> XPROJ2
<strong>ON</strong> PROJECT (RESPEMP)</pre>
</div>
<div class="section"><p>The following alias is created for the table:</p>
<pre><strong>CREATE ALIAS</strong> PROJ <strong>FOR</strong> PROJECT</pre>
</div>
<div class="section"><p>The table below shows the contents of the columns:</p>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="void" border="1" rules="rows"><thead align="left"><tr><th align="left" valign="bottom" width="30.05050505050505%" id="d0e151">Column name</th>
<th align="left" valign="bottom" width="69.94949494949495%" id="d0e153">Description</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="30.05050505050505%" headers="d0e151 ">PROJNO</td>
<td align="left" valign="top" width="69.94949494949495%" headers="d0e153 ">Project number</td>
</tr>
<tr><td align="left" valign="top" width="30.05050505050505%" headers="d0e151 ">PROJNAME</td>
<td align="left" valign="top" width="69.94949494949495%" headers="d0e153 ">Project name</td>
</tr>
<tr><td align="left" valign="top" width="30.05050505050505%" headers="d0e151 ">DEPTNO</td>
<td align="left" valign="top" width="69.94949494949495%" headers="d0e153 ">Department number of the department responsible
for the project</td>
</tr>
<tr><td align="left" valign="top" width="30.05050505050505%" headers="d0e151 ">RESPEMP</td>
<td align="left" valign="top" width="69.94949494949495%" headers="d0e153 ">Employee number of the person responsible
for the project</td>
</tr>
<tr><td align="left" valign="top" width="30.05050505050505%" headers="d0e151 ">PRSTAFF</td>
<td align="left" valign="top" width="69.94949494949495%" headers="d0e153 ">Estimated mean staffing</td>
</tr>
<tr><td align="left" valign="top" width="30.05050505050505%" headers="d0e151 ">PRSTDATE</td>
<td align="left" valign="top" width="69.94949494949495%" headers="d0e153 ">Estimated start date of the project</td>
</tr>
<tr><td align="left" valign="top" width="30.05050505050505%" headers="d0e151 ">PRENDATE</td>
<td align="left" valign="top" width="69.94949494949495%" headers="d0e153 ">Estimated end date of the project</td>
</tr>
<tr><td align="left" valign="top" width="30.05050505050505%" headers="d0e151 ">MAJPROJ</td>
<td align="left" valign="top" width="69.94949494949495%" headers="d0e153 ">Controlling project number for sub projects</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbafyxmpprj.htm">PROJECT</a></strong><br />
A complete listing of the data in table PROJECT.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <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>