Time:10-04
CodePudding user response:
pictures haven't take complete
1 remove group by, left the join to the inner join The second question: Select class. Id, Max (class name), count (*) from... Group by class. Id The third topic: write their own group by + having the count (*) & gt; 30
first, that you have good id removed, Max is must or complains, because the name is not grouping items Second, statistical number can only use the count, sum sum mean, 1, 2, and 3 sum over three people turned 6 not Third, had better use ID group, because ID is unique, the NAME may occur if people sharing the same NAME
Page link:https//www.codepudding.com/database/49853.html