关于数据库不是单组分组函数的问题,求oracle牛人帮忙啊!!

[复制链接]
查看11 | 回复2 | 2011-11-1 10:06:56 | 显示全部楼层 |阅读模式
select * from(select sum(a.price),
sum(a.tksum),
count(*)from artificialtickets a where a.operid = 199 and a.tktpyeid = 2 and a.drvdate = to_date('2011-10-31', 'yyyy-mm-dd')),(select count(*) from artificialtickets b where b.tkstatusid = 2) 我理解的意思就是你还是要查到一行 移到下面就行了...
回复

使用道具 举报

千问 | 2011-11-1 10:06:56 | 显示全部楼层
group by...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行