2016-09-30 89 views

回答

1

使用以下查詢在MySQL:

SELECT C.groupname,C.marks FROM querysecondval下放置JOIN(SELECT A.groupid,IFNULL(B.groupid,0)groupid2 FROM querysecondval A LEFT JOIN(SELECT B.groupid FROM querysecondval B GROUP BY B.groupname order by B.groupid)B ON A.groupid = B.groupid )D ON C.groupid = D.groupid WHERE D.groupid2 = 0 GROUP BY C.groupname order by C.groupid

+0

非常感謝dheeraj :) –

相關問題