例如
select a,b,c,d,e from A
select count(*) as f from B where A.a=B.a
这是做为一览一起抽出来的,
最终是要得到select a,b,c,d,e,f
请问如何写法
select a,b,c,d,e from A
select count(*) as f from B where A.a=B.a
这是做为一览一起抽出来的,
最终是要得到select a,b,c,d,e,f
请问如何写法
解决方案 »
- 怎样在 SQL server 2008 调试procedure
- 事务回滚有个不明白的地方,哪位进来给解释一下
- 要实现,Raise by 10% the salary of every professor who is now younger than 40 and who taught MAT123 in the spring 1997 or fall 19
- 在数据表中插入和读取word文档?
- 求助一个很麻烦的语句
- SQL SERVER中哪个地方存放存储过程的输入参数、输出数值
- 怎么将字符串数组转为整数型数组
- 里面有详细说明! 有关SQL语句
- 急,这个问题的SQL语句写不知道怎么写
- *.occ 是什么个软件,怎么生成的
- 表结构问题,最近遇到难题。
- 请看问题的详细说明
(select count(*) from B where B.a=A.a) f
from A a
from A, (select a,count(*) as f from B group by a) C
where A.a=C.a
from A