定义Student(学生)、Course(课程)、SC(选课)三个基本表如下: Student(Sno,name,sex,birthday,height),Primary Key=Sno Course(Cno,hour,credit,sem

admin2014-08-26  14

问题 定义Student(学生)、Course(课程)、SC(选课)三个基本表如下:
    Student(Sno,name,sex,birthday,height),Primary Key=Sno
    Course(Cno,hour,credit,semester),Primary Key=Cno
    SC(Sno,Cno,grade)
    完成下列题:
试定义一视图Enrol-Spring,作为学生春季选课一览表,其中含有Sno、Cno、name、credit等属性。

选项

答案Create View Enrol—Spring As Select Sno,Cno,name,credit From Student,Course,SC Where Student.Sno=SC.Sno And Course.Cno=SC.Cno And semester=′春′;

解析
转载请注明原文地址:https://jikaoti.com/ti/x6EaFFFM
0

最新回复(0)