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启动database control问题 请问如何导出导入ORALCE里面的图片。 数据量小,但操作频繁。这个情况下适合用Oracle吗? Oracle 中,同一个表空间,不同用户对表中的数据操作会互相影响吗? oracle存储过程实现 求aspnet+C# 存储Oracle的CLob字段的源代码! 弱弱的问:oracle 9i,我新建了一个实例,去哪里给这个实例设用户名密码啊? 请问没有监听器是怎么回事啊 向各位版主、高手求教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这个最好