que_053.htm

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

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

<p>The CUSTOMERS table has these columns:</p><table border="1" bordercolor="gray">
	<tr>
		<td align="left" width="486" bgcolor="#99CCFF">
			<p><b>The  CUSTOMERS  table  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>CUSTOMER_ID  NUMBER(4)  NOT  NULL  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>CUSTOMER_NAME  VARCHAR2(100)  NOT  NULL  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>STREET_ADDRESS  VARCHAR2(150)  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>CITY_ADDRESS  VARCHAR2(50)  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>STATE_ADDRESS  VARCHAR2(50)  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>PROVINCE_ADDRESS  VARCHAR2(50)  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>COUNTRY_ADDRESS  VARCHAR2(50)  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>POSTAL_CODE  VARCHAR2(12)  </b></p>
		</td>
	</tr>
	<tr>
		<td align="left" bgcolor="white">
			<p><b>CUSTOMER_PHONE  VARCHAR2(20)  </b></p>
		</td>
	</tr>
</table>
<p>Which statement finds the rows in the CUSTOMERS table that do not have a postal code? </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 customer_id, customer_name <br>
			  FROM customers <br>
			  WHERE postal_code CONTAINS NULL; 
			</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 customer_id, customer_name <br>
			  FROM customers <br>
			  WHERE postal_code = '________'; 
			</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 customer_id, customer_name <br>
			  FROM customers <br>
			  WHERE postal_code IS NULL; 
			</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 customer_id, customer_name <br>
			  FROM customers <br>
			  WHERE postal code IS NVL; 
			</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 customer_id, customer_name <br>
			  FROM customers <br>
			  WHERE postal_code = NULL;</b></p>
		</td>
	</tr>
	</span>
	</form>
</table>

</body>
</html>
<br>

⌨️ 快捷键说明

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