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

📄 que_014.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 014	
</b></p><hr color="#99CCFF">

<p>Evaluate the SQL statement: </p><p>1 SELECT a.emp_name, a.sal, a.dept_id, b.maxsal <br>
2 FROM employees a, <br>
3 &nbsp;&nbsp;&nbsp;(SELECT dept_id, MAX(sal) maxsal 
<br>4. &nbsp;&nbsp;&nbsp;FROM employees <br>
5 &nbsp;&nbsp;&nbsp;&nbsp;GROUP BY dept_id) b <br>
6 WHERE a.dept_id = b.dept_id 
<br>7 AND a.sal &lt; b.maxsal; <br>
What is the result of the 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 produces an error at line 1. 
			</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 produces an error at line 3. 
			</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 produces an error at line 6. 
			</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 the employee name, salary, department ID, and maximum salary earned in the department of the employee for all departments that pay less salary then the maximum salary paid in the company. 
			</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>   The statement returns the employee name, salary, department ID, and maximum salary earned in the department of the employee for all employees who earn less than the maximum salary in their department.</p>
		</td>
	</tr>
	</span>
	</form>
</table>

<br></body>
</html>

⌨️ 快捷键说明

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