select regname, t.netbyte_in, t.netbyte_out, t.netbyte_out ,t.totaltime
from monit_net_detail t left join monit_dev_hotarea k on t.groupid=k.groupid group by regname查询表是2个表的组合,现在想输出个count(regname),select regname, count(regname),t.netbyte_in, t.netbyte_out, t.netbyte_out ,t.totaltime
from monit_net_detail t left join monit_dev_hotarea k on t.groupid=k.groupid group by regname报错啊。
说不是分组。
from monit_net_detail t left join monit_dev_hotarea k on t.groupid=k.groupid group by regname查询表是2个表的组合,现在想输出个count(regname),select regname, count(regname),t.netbyte_in, t.netbyte_out, t.netbyte_out ,t.totaltime
from monit_net_detail t left join monit_dev_hotarea k on t.groupid=k.groupid group by regname报错啊。
说不是分组。
解决方案 »
- drop表再建后查询user_objects表OBJECT_NAME出现乱码的
- 新手请教一个oracle安装./runInstaller:line 47的问题,很着急。
- 存储过程删除 check constraints
- 求Oracle一个自定义函数的写法:sql2000里的isnull(pa,pb)在oracle自定义函数
- ORA9 for LINUX9的安装说明求一份!详细的
- 求教!!oracle数据库无法启动
- ORA-01122: 数据库文件 1 验证失败
- 请教v$sort_segment的作用
- 如何导入(导出)Oracle的数据?
- 什么是API?急!
- 行转列的时候怎么过滤掉重复字段值?row_number() over partition by
- 谁能帮我该成oracle。update from,谢谢大家了
from monit_net_detail t left join monit_dev_hotarea k on t.groupid=k.groupid group by regname, t.netbyte_in, t.netbyte_out, t.netbyte_out ,t.totaltime 是能执行了,但是不知对不对
from monit_net_detail t left join monit_dev_hotarea k on t.groupid=k.groupid
group by regname),t.netbyte_in, t.netbyte_out, t.netbyte_out ,t.totaltime
试试这样行不行
select regname, count(regname),t.netbyte_in, t.netbyte_out, t.netbyte_out ,t.totaltime from monit_net_detail where regname in(select regname from monit_net_detail t left join monit_dev_hotarea k
on t.groupid=k.groupid group by regname)