學生成績 分數輸入+和0的分別

本文由 shalicewongWLK 在 2023-11-01 發表於 "WebSAMS 討論區" 討論區

標籤:
  1. 59579943

    shalicewongWLK
    Expand Collapse

    文章:
    3
    讚:
    0
    如果缺考一律會當0分計算,那麽在websams輸入+或0有分別嗎?
    如果輸入+,是否可以在資料選取編修模組只匯出這些缺席學生的分數?
     
    #1 shalicewongWLK, 2023-11-01
  2. 59745545

    edb-tsuisheklui
    Expand Collapse

    文章:
    6
    讚:
    0
    在計算分數時,是沒有分別的。例如:學生的平均分數。

    但是在紀錄上卻代表兩個不同的情況:
    如果輸入0分,代表考生有參與考試,而考獲的成績為0分,成績表同樣的會顯示「0」(即0分)。
    如果輸入「+」號,代表考生缺席考試,而該成績會當0分計算,但成績表則會顯示「Abs」。

    系統以不同的符號,在版面中顯示特別事項紀錄。另外,也會在一些報告中,在示標一欄顯示。例如:學生成績 > 報告 > 特別事項報告 > 免修╱退修╱缺席清單(依班別)

    另外,老師的說法正確。有了這些符號,便能在資料選取編修模組中,只匯出這些學生的成績。
     
    #2 edb-tsuisheklui, 2023-11-01
  3. 59579943

    shalicewongWLK
    Expand Collapse

    文章:
    3
    讚:
    0
    謝謝@
    請問如何匯出輸入了+或-或/的學生各科成績?
     
    #3 shalicewongWLK, 2023-11-01
  4. 59745545

    edb-tsuisheklui
    Expand Collapse

    文章:
    6
    讚:
    0
    你好,

    請試試以下的SQL

    select
    a.classcode '
    班別',
    a.classno '
    學號',
    a.chname '
    姓名',

    e.sysscore 'T1 中文',
    e.exdrptype 'T1
    中文缺考科目符號',
    f.sysscore 'T1
    英文',
    f.exdrptype 'T1
    英文缺考科目符號',
    g.sysscore 'T1
    數學',
    g.exdrptype 'T1
    數學缺考科目符號',
    h.sysscore 'T1
    常識',
    h.exdrptype 'T1
    常識缺考科目符號',

    d1.syspercscore 'T1
    平均分',
    d1.overcondgradeconversioncompcode 'T1
    操行',


    e1.sysscore 'T2 中文',
    e1.exdrptype ' T2
    中文缺考科目符號',
    f1.sysscore 'T2
    英文',
    f1.exdrptype ' T2
    英文缺考科目符號',
    g1.sysscore 'T2
    數學',
    g1.exdrptype ' T2
    數學缺考科目符號',
    h1.sysscore 'T2
    常識',
    h1.exdrptype ' T2
    常識缺考科目符號',

    d2.syspercscore 'T2
    平均分',
    d2.overcondgradeconversioncompcode 'T2
    操行',


    e2.sysscore 'T3 中文',
    e2.exdrptype ' T3
    中文缺考科目符號',
    f2.sysscore 'T3
    英文',
    f2.exdrptype ' T3
    英文缺考科目符號',
    g2.sysscore 'T3
    數學',
    g2.exdrptype ' T3
    數學缺考科目符號',

    h2.sysscore 'T3
    常識',
    h2.exdrptype '
    常識缺考科目符號',

    d3.syspercscore 'T3
    平均分',
    d3.overcondgradeconversioncompcode 'T3
    操行'


    from wsadmin.vw_stu_lateststudent a
    join wsadmin.tb_asr_time a1
    on a1.timeseq=1101

    left outer join wsadmin.tb_asr_studassessdata d1
    on a.suid=d1.suid and a.stuid=d1.stuid and d1.schyear=a.schyear and d1.timeseq=a1.timeseq


    left outer join wsadmin.TB_ASR_SUBJASSESSDATA e
    on a.SUID=e.SUID and a.STUID=e.STUID and a.SCHYEAR=e.SCHYEAR and e.TIMESEQ=a1.timeseq and e.SUBJCODE='080'
    left outer join wsadmin.TB_ASR_SUBJASSESSDATA f
    on a.SUID=f.SUID and a.STUID=f.STUID and a.SCHYEAR=f.SCHYEAR and f.TIMESEQ=a1.timeseq and f.SUBJCODE='165'
    left outer join wsadmin.TB_ASR_SUBJASSESSDATA g
    on a.SUID=g.SUID and a.STUID=g.STUID and a.SCHYEAR=g.SCHYEAR and g.TIMESEQ=a1.timeseq and g.SUBJCODE='280'
    left outer join wsadmin.TB_ASR_SUBJASSESSDATA h
    on a.SUID=h.SUID and a.STUID=h.STUID and a.SCHYEAR=h.SCHYEAR and h.TIMESEQ=a1.timeseq and h.SUBJCODE='205'


    left outer join wsadmin.tb_asr_studassessdata d2
    on a.suid=d2.suid and a.stuid=d2.stuid and d2.schyear=a.schyear and d2.timeseq=1201
    left outer join wsadmin.TB_ASR_SUBJASSESSDATA e1
    on a.SUID=e1.SUID and a.STUID=e1.STUID and a.SCHYEAR=e1.SCHYEAR and e1.TIMESEQ=1201 and e1.SUBJCODE='080'
    left outer join wsadmin.TB_ASR_SUBJASSESSDATA f1
    on a.SUID=f1.SUID and a.STUID=f1.STUID and a.SCHYEAR=f1.SCHYEAR and f1.TIMESEQ=1201 and f1.SUBJCODE='165'
    left outer join wsadmin.TB_ASR_SUBJASSESSDATA g1
    on a.SUID=g1.SUID and a.STUID=g1.STUID and a.SCHYEAR=g1.SCHYEAR and g1.TIMESEQ=1201 and g1.SUBJCODE='280'
    left outer join wsadmin.TB_ASR_SUBJASSESSDATA h1
    on a.SUID=h1.SUID and a.STUID=h1.STUID and a.SCHYEAR=h1.SCHYEAR and h1.TIMESEQ=1201 and h1.SUBJCODE='205'


    left outer join wsadmin.tb_asr_studassessdata d3
    on a.suid=d3.suid and a.stuid=d3.stuid and d3.schyear=a.schyear and d3.timeseq=1301
    left outer join wsadmin.TB_ASR_SUBJASSESSDATA e2
    on a.SUID=e2.SUID and a.STUID=e2.STUID and a.SCHYEAR=e2.SCHYEAR and e2.TIMESEQ=1301 and e2.SUBJCODE='080'
    left outer join wsadmin.TB_ASR_SUBJASSESSDATA f2
    on a.SUID=f2.SUID and a.STUID=f2.STUID and a.SCHYEAR=f2.SCHYEAR and f2.TIMESEQ=1301 and f2.SUBJCODE='165'
    left outer join wsadmin.TB_ASR_SUBJASSESSDATA g2
    on a.SUID=g2.SUID and a.STUID=g2.STUID and a.SCHYEAR=g2.SCHYEAR and g2.TIMESEQ=1301 and g2.SUBJCODE='280'
    left outer join wsadmin.TB_ASR_SUBJASSESSDATA h2
    on a.SUID=h2.SUID and a.STUID=h2.STUID and a.SCHYEAR=h2.SCHYEAR and h2.TIMESEQ=1301 and h2.SUBJCODE='205'


    where a.schyear=? and a.classlvl=?
    and (e.exdrptype is not null or f.exdrptype is not null or g.exdrptype is not null or h.exdrptype is not null or e1.exdrptype is not null or f1.exdrptype is not null or g1.exdrptype is not null or h1.exdrptype is not null or e2.exdrptype is not null or f2.exdrptype is not null or g2.exdrptype is not null or h2.exdrptype is not null )
    order by a.classcode,a.chname
     
    #4 edb-tsuisheklui, 2023-11-03
  5. 59744047

    edb-brianchow
    Expand Collapse

    文章:
    9
    讚:
    0
    #5 edb-brianchow, 2023-11-03