现有A表 数据如下:
姓名 消费
a 1
a 2
b 3
b 1
b 2
c 3现在要 查出没个人的消费总额 。。怎么搞
姓名 消费
a 1
a 2
b 3
b 1
b 2
c 3现在要 查出没个人的消费总额 。。怎么搞
解决方案 »
- 修改oracle8.17 监听端口语句报错
- Oracle10g部署到WindowServer2008 R2 64bit标准版上,跪求具备可行性的安装手册
- 财务的一个统计需求,感觉不太合理
- 问个简单的问题 ,我写了个过程a, 如何调用啊,call a ;不对啊
- oracle9i连到oracle7.13上为什么汉字显示是乱码
- 一个简单的问题
- 复制oracle后,我能用svrmgrl连接数据库,但是不能用sqlplus连接
- sql中得like 得用法???????????
- 关于dba studio 的登陆问题,选中一个数据库后,如果登陆身份设为dba,,密码不对也能进,为什么呢?
- 想知道create view的详细语法用法。谢谢,顺便问问那里有有关sql的电子书下载(最好是针对oracle8的)
- OracleConnection怎么写呢
- oracle 无效sql语句
(
select 'a' name, '1' pos from dual
union
select 'a' name, '2' pos from dual
union
select 'b' name, '3' pos from dual
union
select 'b' name, '1' pos from dual
union
select 'b' name, '2' pos from dual
union
select 'c' name, '3' pos from dual
)
select a.name, sum(a.pos) from a group by a.name;