SQL语句怎么写? select sum(a)+sum(b) from table a where c=0unionselect sum(a)+sum(b) from table awhere c=1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select c,sum(a)+sum(b) from table group by c select pp.c1,mm.c0 from (select sum(a)+sum(b) as c1 from tt where c=1) pp,(select sum(a)+sum(b) as c0 from tt where c=0) mm select SUM(DECODE(c,0,a+b)), SUM(DECODE(c,1,a+b)) from 表 是這樣的意思嗎 liuyi8903(西西) 支的招应该可行?楼主所说的列集是指什么? liuyi8903(西西)的select c,sum(a)+sum(b) from table group by c这个最好 请教各位一个关于数据库表记录拆分的解决办法 树状查询是否可以获取到起始节点并分组 ORACLE 10列和表合并问题,麻烦大家帮忙 一不小心把Net Manager快捷方式删掉了,怎么办?在线等。。。 PL/SQL能不能调用SQL LOADER? 如何把一个游标的一行整体赋给一个值呢? sflight(飞)请进来接分 问题?疑惑中! 高分求教Oracle的导入导出问题(内详). 我是oracle初学者,关于倒入表的问题,望大侠教我. 这种情况怎么插入数据?刚学ORACLE 几个小问题,各位请进
from table
group by c
from tt
where c=1) pp,(select sum(a)+sum(b) as c0
from tt
where c=0) mm
SUM(DECODE(c,1,a+b))
from 表 是這樣的意思嗎
select c,sum(a)+sum(b)
from table
group by c这个最好