📄 que_169.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> (student_id NUMBER(12),<br>
semester_end DATE, <br> gpa
NUMBER(4,3), <br> CONSTRAINT student_id_fk REFERENCES (student_id) 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> (student_id NUMBER(12),<br>
semester_end DATE, <br> gpa
NUMBER(4,3), <br> student_id_fk FOREIGN KEY (student_id) <br>
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> (student_id NUMBER(12),<br>
semester_end DATE, <br> gpa
NUMBER(4,3), <br> CONSTRAINT FOREIGN KEY (student_id) <br>
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> (student_id NUMBER(12),<br>
semester_end DATE, <br> gpa
NUMBER(4,3), <br> CONSTRAINT student_id_fk FOREIGN KEY (student_id) REFERENCES
students(student_id));</p>
</td>
</tr>
</span>
</form>
</table>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -