问答题
阅读下列说明,根据要求回答问题。
[说明]
某公司的电子商务网站部分页面如图所示。

[index.html文档的内容]
<html>
<head>
<title>网上商城<</title>
</head>
<frameset ______ ="15%, 70%, 15%" noresize="noresize" border=1>
<frame sre="frame top.html" name="top">
<frameset ______ ="20%, 80%">
<frame src="frame left.html" name="left">
<frame src="frame right.html" name="right">
</frameset>
<frame src="count.asp" name="bottom">
</frameset>
</html>
[frame_left.html文档的内容]
<html>
省略部分代码……
<center>
<table border="1" bordercolor="blue">
<tr>
<td><a href="content_1.html" ______ ="right">
<img src="img/1.gif’" width="100" height="30" border="0"></a></td>
</tr>
省略部分代码……
</table>
</center>
省略部分代码……
</html>
[count.asp文档的内容]
<html>
<head>
<title>计数器</title>
<body>
<%
Set conn=Server.CreateObject("ADODB.Connection")
Set rs=Server.CreateObject("ADODB. ______")
conn.ConnectionString=" ______ =MicrosoftAccess Driver(*.mdb); Uid=; Pwd=; DBQ="&Server. ______("database/count.mdb")
conn.open()
______ sql
sql="______ count set hit=hit+1"
conn. ______(sql)%>
sql="select * from count"
set rs=conn.execute(sql)
%>
<%
lasthitzs.fields("lasthit")
tdate=year(Now())& "-" &month(Now()) & "-" & day(Now())
sql="update count set lasthit=’"&tdate&"’ where ID="&rs.fields("id")
conn.execute(sql)
%>
<%
sql="select * from count"
set rs=conn.execute(sql)
%>
<table bgcolor=blue><tr><td width="100%" align=center>总访问<%=rs("hit")%>次,最后访问日期<%rs("lasthit")%></td></tr></table>
<%
rs.close()
%>
</bedy>
</html>
该公司各类商品的仓库管理数据库的部分关系模式如下。
仓库(仓库号,面积,负责人,电话)
原材料(编号,名称,数量,储备量,仓库号)
要求一种原材料只能存放在同一个仓库中。
将下面的SQL语句补充完整,完成“查询存放原材料数量最多的仓库号”的功能。
SELBCT仓库号
FROM ______
______
______ SUM(数量)>=ANY( SELECT ______
FROM ______
GROUP BY ______;
【参考答案】
原材料 GROUPBY仓库号 HAVING SUM(数量) 原材料 仓库号