que_107.htm

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

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

<p>You need to produce a report for mailing labels for all customers. The mailing label must have only the customer name and address. The CUSTOMERS table has these columns:</p><table border="1" bordercolor="gray">
	<tr>
		<td align="left" width="486" bgcolor="#99CCFF">
			<p><b>CUSTOMERS  table  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>CUST_ID  NUMBER(4)  NOT  NULL  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>CUST_NAME  VARCHAR2(100)  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>CUST_ADDRESS  VARCHAR2(150)  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>CUST_PHONE  VARCHAR2(20)  </b></p>
		</td>
	</tr>
</table>
<p>Which SELECT statement accomplishes this task? </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* <br>
			  FROM customers; 
			</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 name, address <br>
			  FROM customers; 
			</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 id, name, address, phone <br>
			  FROM customers; 
			</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 cust_name, cust_address <br>
			  FROM customers; 
			</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 cust_id, cust_name, cust_address, cust_phone <br>
			  FROM customers;</b></p>
		</td>
	</tr>
	</span>
	</form>
</table>

</body>
</html>

⌨️ 快捷键说明

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