1
我想添加的所有第一名的成绩(cou_code)到第二结果(cou_code)产生的结果为:总和的2个SELECT语句throught SQL
CHANGES STATE_CODE
---------- ----------
29 01
2 16
2 02
1 05
3 06
- 改变所有
select count(cou_code), st_code
from sdrp15_cosd
where st_code = (select distinct state_code
from sdrp15_submission_log
where state_code = st_code
and cou_code = 'All'
and phase = 'A'
and qa_date is null)
and phase = 'A'
group by st_code;
产生的结果为:
COUNT(COU_CODE) ST_CODE
--------------- -------
157 01
1 11
180 16
61 02
1088 06
你忘了这个问题吗? –