📄 que_023.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 023
</b></p><hr color="#99CCFF">
<p>Examine the description of the MARKS table: </p><table border="1" bordercolor="gray">
<tr>
<td align="left" width="486" bgcolor="#99CCFF">
<p><b>MARKS table: </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>STD_ID NUMBER(4) </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>STUDENT_NAME VARCHAR2(30) </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>SUBJ1 NUMBER(3) </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>SUBJ2 NUMBER(3) </b></p>
</td>
</tr>
</table>
<p>SUBJ1 and SUBJ2 indicate the marks obtained by a student in two subjects.
Examine this SELECT statement based on the MARKS table:
<br><br>SELECT subj1+subj2 total_marks, std_id <br>
FROM marks <br>
WHERE subj1 > AVG(subj1) <br>AND subj2 > AVG(subj2)
<br>ORDER BY total_marks; <br>
<br>What is the result of the SELECT statement? </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> The statement executes successfully and returns the student ID and sum of all marks
for each student who obtained more than the average mark in each subject.
</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> The statement returns an error at the SELECT clause.
</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> The statement returns an error at the WHERE clause.
</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> The statement returns an error at the ORDER BY clause.</p>
</td>
</tr>
</span>
</form>
</table>
<br></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -