1. Student Name
2. Class Name
3. Test result
的學生需要有不同的結果不止一個測試學生表。我試圖將數據獲取到具有
1. Stundent Name+CLass Name (Concatenated)
2. Pass (No of tests Passed)
3. Fail (No of tests failed)
4. Absent (No of tests Absent)
另一個表我用
select count(*)
from Student
where Result in ('Passed')
group by StuName, ClassName;
得到的傳遞主題爲每個STU +級組合計數。類似的失敗和缺席測試。
我應該如何修改代碼以在表格中插入兩個?
不錯。很短的解決方案。 – Walter 2013-03-01 14:18:08
我不知道有可能SUM布爾值。尼斯。 – 2013-03-01 14:24:26