当尝试从标有“帐户”的表中计算储蓄帐户的数量并通过“分支”表字段branchID显示它们时,我无法使此SQL查询工作。
我最初尝试过以下查询:
<!DOCTYPE html>
<html>
<head>
<style>
.wetest{
background-color:black;
list-style-type:none;
margin:0;
padding:0;
overflow:hidden;
}
li a{
text-decoration:none;
padding:14px 16px;
color:white;
text-align:center;
display:inline-block;
}
li a:hover{
background-color:orange;
}
.litest{
display:inline;
float:left;
}
</style>
</head>
<body>
<ul class="wetest"><span style="cursor:pointer">
<li class="litest"><a href="#home">Home</a></li>
<li class="litest"><a href="#news">News</a></li>
<li class="litest"><a href="#contact">Contact</a></li>
<li class="litest"><a href="#about">About</a></li>
</span>
</ul>
</body>
</html>
将分别返回所有储蓄帐户和分支机构的实例。
在执行谷歌搜索之后,我将查询更改为:
SELECT Account.accType, Branch.bAddress.City
FROM Account
FULL OUTER JOIN Branch on Account.bID = Branch.bID
WHERE Account.acctype = 'Savings'
哪个错误提示“不是GROUP BY表达式”。