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

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

<p>Examine the structure of the EMPLOYEES, DEPARTMENTS, and LOCATIONS tables. </p><table border="1" bordercolor="gray">
	<tr>
		<td align="left" width="486" bgcolor="#99CCFF">
			<p><b>EMPLOYEES  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>EMPLOYEE_ID                  NUMBER                                  NOT  NULL,  Primary  Key  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>EMP_NAME                            VARCHAR2  (30)  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>JOB_ID                                            VARCHAR2  (20)  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>SALARY                                        NUMBER  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>MGR_ID                                        NUMBER                                  References  EMPLOYEE_ID  column  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>DEPARTMENT_ID      NUMBER                                  Foreign  key  to  DEPARTMENT_ID  column  of  the                                                                                                                                          DEPARTMENTS  table  </b></p>
		</td>
	</tr>
</table><br>
<p></p><table border="1" bordercolor="gray">
	<tr>
		<td align="left" width="486" bgcolor="#99CCFF">
			<p><b>DEPARTMENTS  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>DEPARTMENT_ID                    NUMBER                                  NOT  NULL,  Primary  Key  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>DEPARTMENT_NAME    VARCHAR2(30)  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>MGR_ID                                                    NUMBER                        References  NGR_ID  column  of  the                                                                                                                                           EMPLOYEES  table  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>LOCATION_ID                          NUMBER                          Foreign  key  to  LOCATION_ID  column  of  the  LOCATIONS  table  </b></p>
		</td>
	</tr>
</table><BR>
<table border="1" bordercolor="gray">
	<tr>
		<td align="left" width="486" bgcolor="#99CCFF">
			<p><b>LOCATIONS  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>LOCATION_ID  NUMBER  NOT  NULL,  Primary  Key  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>CITY  VARCHAR2  (30)  </b></p>
		</td>
	</tr>
</table>

<p><br>Which two SQL statements produce the name, department name, and the city of all the employees who earn more then 10000? (Choose two) </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="checkbox" name="AN" value="A">  A.</b></p>
		</td>
		<td align="left" width="566">
			<p> SELECT emp_name, department_name, city <br>
			  FROM employees e <br>
			  JOIN departments d <br>
			  USING (department_id) <br>
			  JOIN locations 1 <br>
			  USING (location_id) <br>
			  WHERE salary &gt; 10000; 
			</p>
		</td>
	</tr>
	<tr>
		<td align="center" width="89">
			<p><b><input type="checkbox" name="AN" value="B">  B.</b></p>
		</td>
		<td align="left" width="566">
			<p>   SELECT emp_name, department_name, city <br>
			  FROM employees e, departments d, locations 1 <br>
			  JOIN ON (e.department_id = d.department_id) <br>
			  AND (d.location_id =1.location_id) <br>
			  AND salary &gt; 10000; 
			</p>
		</td>
	</tr>
	<tr>
		<td align="center" width="89">
			<p><b><input type="checkbox" name="AN" value="C">  C.</b></p>
		</td>
		<td align="left" width="566">
			<p>   SELECT emp_name, department_name, city <br>
			  FROM employees e, departments d, locations 1 <br>
			  WHERE salary &gt; 10000; 
			</p>
		</td>
	</tr>
	<tr>
		<td align="center" width="89">
			<p><b><input type="checkbox" name="AN" value="D">  D.</b></p>
		</td>
		<td align="left" width="566">
			<p>   SELECT emp_name, department_name, city <br>
			  FROM employees e, departments d, locations 1 <br>
			  WHERE e.department_id = d.department_id <br>
			  AND d.location_id = 1.location_id <br>
			  AND salary &gt; 10000; 
			</p>
		</td>
	</tr>
	<tr>
		<td align="center" width="89">
			<p><b><input type="checkbox" name="AN" value="E">  E.</b></p>
		</td>
		<td align="left" width="566">
			<p>   SELECT emp_name, department_name, city <br>
			  FROM employees e <br>
			  NATURAL JOIN departments, locations <br>
			  WHERE salary &gt; 10000;</p>
		</td>
	</tr>
	</span>
	</form>
</table>

<br></body>
</html>

⌨️ 快捷键说明

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