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
你忘了這個問題嗎? –