Auto commit

This commit is contained in:
smallkun 2025-03-05 08:49:26 +08:00
parent c82388d6b2
commit 3a32020d4e

View File

@ -345,8 +345,13 @@ WHERE st.stuid = sc.student_id AND sc.course_id = c.cid
ORDER BY sc.score DESC;
#8
CREATE VIEW v_scores AS
SELECT c.cname, CEIL(AVG(sc.score)), MAX(sc.score), MIN(sc.score)
FROM tb_students st, tb_scores sc, tb_courses c
WHERE st.stuid = sc.student_id AND sc.course_id = c.cid
GROUP BY c.cid;
#9
```