📄 que_118.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 118
</b></p><hr color="#99CCFF">
<p>Examine the structure of the EMP_DEPT_VU view: </p><table border="1" bordercolor="gray">
<tr>
<td align="left" width="486" bgcolor="#99CCFF">
<p><b>EMP_DEPT_VU </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>EMPLOYEE_ID NUMBER From the EMPLOYEES table </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>EMP_NAME VARCHAR2(30) From the EMPLOYEES table </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>JOB_ID VARCHAR2(20) From the EMPLOYEES table </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>SALARY NUMBER From the EMPLOYEES table </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>DEPARTMENT_ID NUMBER From the DEPARTMENTS table </b></p>
</td>
</tr>
<tr>
<td align="left" bgcolor="white">
<p><b>DEPT_NAME VARCHAR2(30) From the DEPARTMENTS table </b></p>
</td>
</tr>
</table>
<p>Which SQL statement produces an error? </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 * FROM emp_dept_vu;
</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 department_id, SUM(salary) <br>FROM emp_dept_vu <br>GROUP BY department_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> SELECT department_id, job_id, AVG(salary) <br>FROM emp_dept_vu <br>GROUP BY department_id, job_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> SELECT job_id, SUM(salary) <br>FROM emp_dept_vu <br>WHERE department_id IN (10,20) <br>
GROUP BY job_id <br>HAVING SUM(salary) > 20000;
</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> None of the statements produce an error; all are valid.</p>
</td>
</tr>
</span>
</form>
</table>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -