大家好,问一个关于sql的问题 本帖最后由 cn_a380 于 2010-05-06 10:29:45 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select count(*) from cup where outfee=0 or infee=0; select a.rs ,b,rs from (select count(*) rs from cup where infee=0)a,(select count(*) rs from cup where outfee=0)b貌似可以,楼主试下 select count(*) from cup where infee=0;union allselect count(*) from cup where outfee=0; select count(*) from cup where infee=0;union allselect count(*) from cup where outfee=0;高! select sum(case when infee=0 then 1 else 0 end),sum(case when outfee=0 then 1 else 0 end)from cup; 如何查询出非系统用记 问一个java中sql的语句 遇到问题:java.sql.SQLException: ORA-01861: 文字与格式字符串不匹配 怎样用一条sql语句实现下列操作 入门sql平均值算法问题 - - 达人进 .. 跪了.. >,< em的登陆 两个问题,高手请解答! 从Oracle网站下载的Oracle企业版,有没有时间或功能上的限制??? 临时表怎么弄?在线等 求oracle一个存储过程 在redhat 企业版 5.4 上安装oracle9204出现问题 vs2008中使用ado连接oracle 9i数据库,如何响应触发器发出的事件并获得返回值?
select count(*) from cup where outfee=0 or infee=0;
(select count(*) rs from cup where outfee=0)b
貌似可以,楼主试下
select count(*) from cup where infee=0;
union all
select count(*) from cup where outfee=0;
union all
select count(*) from cup where outfee=0;
高!
select
sum(case when infee=0 then 1 else 0 end),
sum(case when outfee=0 then 1 else 0 end)
from cup;