SQL SQL to count the number of awards of each student

本文由 Su.Chow 在 2016-06-30 發表於 "WebSAMS 討論區" 討論區

標籤:
  1. 55057471

    Su.Chow
    Expand Collapse

    文章:
    44
    讚:
    0
    How to write an SQL to count the number of awards of each students in a school year? Thanks in advance for your help.
     
    #1 Su.Chow, 2016-06-30
  2. 58019970

    edb-jackal
    Expand Collapse

    文章:
    465
    讚:
    0
  3. 55057471

    Su.Chow
    Expand Collapse

    文章:
    44
    讚:
    0
    Sorry. I should have explained in more details. I want to sum the number of awards or scholarships of each student in this school year, not the award point (大過,小過). Thanks in advance.
     
    #3 Su.Chow, 2016-07-04
  4. 58019970

    edb-jackal
    Expand Collapse

    文章:
    465
    讚:
    0
    請老師參考以下SQL 語句:

    如果老師想一次retrieve 全校學生(不按班級),可把紅色部分刪除
     
    #4 edb-jackal, 2016-07-04