多字段分組查詢

WITH tmp AS ( select max(autoScore) score,z.courseID from QZ_MEMBER_PAPER_SCORE as z where z.userID=1 and z.isExam != 0 group by z.courseID ) SELECT b.* FROM tmp a JOIN QZ_MEMBER_PAPER_SCORE b ON a.sc
相關文章
相關標籤/搜索