表 request code1 code2 A B A D C B B D计算每个字母出现的次数 也就是要得到以下结果 code count A 2 B 3 C 1 D 2
解决方案 »
- 存储过程 IF....THEN 的问题
- oracle sqlldr 报错:SQL*Loader-350
- oracle 11 oracle.exe 特别占 cpu ,远程无法连接 两个问题,谢谢。
- ORA-12154:TNS:无法解析指定的连接标识符
- dspace连接oracle问题
- 如何优化海量数据的查询速度啊(有SQL语句)?
- 各位好,遇到一个麻烦,还请各位大虾帮忙解决,分数不多,单一定兑现
- [求助]如何限制查询返回记录的条数?
- 新建一个用户,允许它有执行过程,函数,同义词,访问表,该怎么样给它权限啊?
- 请问哪位大侠能在linux9或7.2下安装oracle8.17? 100分相送
- 求救,客户机可以tnsping通但无法连接,服务器上访问数据库正常。
- 一条SQL语句....
///
insert into request
select 'A','B' from dual
union all
select 'A','D' from dual
union all
select 'C','B' from dual
union all
select 'B','D' from dual;
///
select code,count(code) from
(
select code1 code from request
union all
select code2 code from request
) t
group by code