Mysql_项目3:查询出超过或等于5名学生的课程(难度:简单)

  • Post author:
  • Post category:mysql



项目3:查询出超过5名学生的课程(难度:简单)

创建如下所示的courses 表 ,有: student (学生) 和 class (课程)。

例如,表:

+———+————+

| student | class      |

+———+————+‘’

| A       | Math       |

| B      | English    |

| C       | Math       |

| D       | Biology    |

| E       | Math       |

| F       | Computer   |

| G       | Math       |

| H       | Math       |

| I       | Math       |

| A      | Math       |

+———+————+


—- 创建表

CREATE TABLE courses (
student varchar(50) NOT NULL