que_035.htm

来自「oracle DBA的资料」· HTM 代码 · 共 109 行

HTM
109
字号
<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 035	
</b></p><hr color="#99CCFF">

<p>The STUDENT_GRADES table has these columns: </p><table border="1" bordercolor="gray">
	<tr>
		<td align="left" width="486" bgcolor="#99CCFF">
			<p><b>The  STUDENT_GRADES  table</b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>STUDENT_ID  NUMBER(12)  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>SEMESTER_END  DATE  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>GPA  NUMBER(4,3)  </b></p>
		</td>
	</tr>
</table>
<p>The registrar has asked for a report on the average grade point average (GPA) for 
students enrolled during semesters that end in the year 2000. Which statement 
accomplish this? </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> SELECT AVERAGE(gpa) <br>
			  FROM student_grades <br>
			  WHERE semester_end &gt; '01-JAN-2000' <br>And semester_end &lt; 31-DEC-2000'; 
			</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>   SELECT COUNT(gpa) <br>
			  FROM student grades <br>
			  WHERE semester_end &gt; '01-JAN-2000' <br>And semester_end &lt; '31-DEC-2000'; 
			</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>   SELECT MIN(gpa) <br>
			  FROM student grades <br>
			  WHERE semester_end &gt; '01-JAN-2000' <br>And semester_end &lt; '31-DEC-2000'; 
			</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>   SELECT AVG(gpa) <br>
			  FROM student_grades <br>
			  WHERE semester_end BETWEEN '01-JAN-2000' and '31-DEC-2000'; 
			</p>
		</td>
	</tr>
	<tr>
		<td align="center" width="89">
			<p><b><input type="radio" name="AN" value="E">  E.</b></p>
		</td>
		<td align="left" width="566">
			<p>   SELECT SUM(gpa) <br>
			  FROM student grades <br>
			  WHERE semester_end &gt; '01-JAN-2000' <br>And semester_end &lt; '31-DEC-2000'; 
			</p>
		</td>
	</tr>
	<tr>
		<td align="center" width="89">
			<p><b><input type="radio" name="AN" value="F">  F.</b></p>
		</td>
		<td align="left" width="566">
			<p>   SELECT MEDIAN(gpa) <br>
			  FROM student_grades <br>
			  WHERE semester_end &gt; '01-JAN-2000' <br>And semester_end &lt; '31-DEC-2000';</p>
		</td>
	</tr>
	</span>
	</form>
</table>

<br></body>
</html>

⌨️ 快捷键说明

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