⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 que_169.htm

📁 oracle DBA的资料
💻 HTM
字号:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>Ocp test </title>
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p align="left" color="black" style="font-size:16pt;">
	<b>QUESTION 169	
</b></p><hr color="#99CCFF">

<p>You need to design a student registration database that contains several tables storing academic information. 
<br>The STUDENTS table stores information about a student. <br>The STUDENT_GRADES table stores information about the student's grades. <br>Both of the tables have a column named STUDENT_ID. <br>The STUDENT_ID column in the STUDENTS table is a primary key. 
<br>You need to create a foreign key on the STUDENT_ID column of the STUDENT_GRADES table that points to the STUDENT_ID column of the STUDENTS table. 
<br><br>Which statement creates the foreign key? </p><table border="1" bordercolor="gray" width="665">
	<form name="youAnsForm">
	<span style="font-size:18pt;">
	<tr>
		<td align="center" width="89">
			<p><b><input type="radio" name="AN" value="A">  A.</b></p>
		</td>
		<td align="left" width="566">
			<p> CREATE TABLE student_grades <br> &nbsp;&nbsp;&nbsp;&nbsp;(student_id NUMBER(12),<br> 
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;semester_end DATE, <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gpa 
			  NUMBER(4,3), <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CONSTRAINT student_id_fk REFERENCES (student_id) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FOREIGN KEY 
			  students(student_id)); 
			</p>
		</td>
	</tr>
	<tr>
		<td align="center" width="89">
			<p><b><input type="radio" name="AN" value="B">  B.</b></p>
		</td>
		<td align="left" width="566">
			<p>   CREATE TABLE student_grades<br> &nbsp;&nbsp;&nbsp;(student_id NUMBER(12),<br> 
                &nbsp;&nbsp;&nbsp;&nbsp;semester_end DATE, <br> &nbsp;&nbsp;&nbsp;&nbsp;gpa
			  NUMBER(4,3), <br> &nbsp;&nbsp;&nbsp;&nbsp;student_id_fk FOREIGN KEY (student_id) <br> 
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REFERENCES students(student_id)); 
			</p>
		</td>
	</tr>
	<tr>
		<td align="center" width="89">
			<p><b><input type="radio" name="AN" value="C">  C.</b></p>
		</td>
		<td align="left" width="566">
			<p>   CREATE TABLE student_grades<br> &nbsp;&nbsp;&nbsp;(student_id NUMBER(12),<br> 
                &nbsp;&nbsp;&nbsp;&nbsp;semester_end DATE, <br> &nbsp;&nbsp;&nbsp;&nbsp;gpa
			  NUMBER(4,3), <br> &nbsp;&nbsp;&nbsp;&nbsp;CONSTRAINT FOREIGN KEY (student_id) <br> 
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REFERENCES students(student_id)); 
			</p>
		</td>
	</tr>
	<tr>
		<td align="center" width="89">
			<p><b><input type="radio" name="AN" value="D">  D.</b></p>
		</td>
		<td align="left" width="566">
			<p>   CREATE TABLE student_grades<br> &nbsp;&nbsp;&nbsp;&nbsp;(student_id NUMBER(12),<br> 
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;semester_end DATE, <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gpa
			  NUMBER(4,3), <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CONSTRAINT student_id_fk FOREIGN KEY (student_id) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;REFERENCES 
			  students(student_id));</p>
		</td>
	</tr>
	</span>
	</form>
</table>

<p>&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -