class表与student表之间的关系

1.班级表

2.学生表

3.student(学生表),Score(成绩表),course(课程表)

       4.三张表联合查询

    5.连接连个结果集(两个集合必须有相同的列数,列具有相同的数据类型,最终输出的集合的列名第一集合的列名来确定

     6.不去除重复(union all) select * from student union all select * from student

7.子查询(在一个查询中,有另外一查询,这个查询就叫做主查询的子查些)

8.Distinct去除重复数据 select distinct name,gender from dbo.student

原文地址:https://www.cnblogs.com/hehehehehe/p/5114156.html