请大家帮忙优化一个多表查询的问题 select * from passenger t where t.cardType=1 and t.cardId not in (select r.cardId from record r where r.count>0)这个好象是把积分>0的会员排除了吧????? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.cardid,sum(c.money)from 表1 a, 表2 b, 表3 cwhere a.cardId=b.cardId and a.cardId=c.cardId and (a.passenger='VIP' or (a.passenger='普通' and b.record>0))group by a.cardid sbaz(万神渡劫) 我写错了,应该是=0 java调用存储过程时出错,在线等 为什么这样都消除不了ORA-01722: invalid number 求ORCLE SQL语句 关于case语句的写法 优化SQL语句 在oracle中如何写一个isnull函数来代替那个nvl函数呢 问个日期转换的问题:我a表rq字段内容(DATE型)格式为:29-1月 -05,b表rq字段内容(DATE型)格式为:01/23/2005 00:00:00,我现在要比较日期 漫谈数据库的中庸思想 判断两个日期是否在同一周内 in 在存储过程中怎么会出现这种情况,请教! truncate权限问题讨教? 一个trigger的问题~
a.cardid,sum(c.money)
from
表1 a,
表2 b,
表3 c
where
a.cardId=b.cardId
and
a.cardId=c.cardId
and
(a.passenger='VIP' or (a.passenger='普通' and b.record>0))
group by
a.cardid
我写错了,应该是=0