• 2022-06-03
    若要求“查询选修了3门以上课程的学生的学号”,正确的SQL语句是( )
    A: SELECT sNo FROM SC GROUP BY sNo WHERE COUNT(*)> 3
    B: SELECT sNo FROM SC GROUP BY sNo HAVING COUNT(*)> 3
    C: SELECT sNo FROM SC ORDER BY sNo WHERE COUNT(*)> 3
    D: SELECT sNo FROM SC ORDER BY sNo HAVING COUNT(*)> 3
  • 举一反三