SQL语句:select student.* , sc.* from student, sc 实现了关系代数中的操作
举一反三
- SQL语句:select student.* , sc.* from student, sc 实现了关系代数中的( )操作。 A: 连接 B: 选择 C: 投影 D: 笛卡尔积
- 【多选题】针对学生选课数据库S_T,以下()操作实现了student表与sc之间的自然连接。 A. select student.* , cno, grade from student join sc on student.sno=sc.sno B. select student.* , sc.* from student , sc where student.sno=sc.sno C. select student.sno, sname, ssex, sage, sdept , cno, grade from student , sc where student.sno=sc.sno D. select student.* , cno, grade from student , sc where student.sno=sc.sno
- SQL语句:select student.* , cno, grade from student, sc where student.sno=sc.sno 实现了关系代数中的()操作。 A: 笛卡尔积 B: 等值连接 C: 自然连接 D: 除
- 在学生选课数据库中,查询选修了课程的学生的学号、姓名,SQL语句可为( ) A: SELECT DISTINCT Sno, Sname FROM Student, SC WHERE Student.Sno = SC.Sno; B: SELECT Sno, Sname FROM Student, SC WHERE Student.Sno = SC.Sno; C: SELECT DISTINCT Sno, DISTINCT Sname FROM Student WHERE Student.Sno IN (SELECT Sno FROM SC); D: SELECT Sno, Sname FROM Student WHERE Student.Sno IN (SELECT DISTINCT Sno FROM SC);
- 设Student为学生关系,SC为学生选课关系,Sn0为学生号,Sname为学生姓名,Cn0为课程号,执行下列SQl。语句的查询结果是( )。SeleCt Student. SnameFrom Student, SCWhere Student. Sno= SC. SnoAnd SC. Cno=’C1’ A: 选出选修Cl课程的学生信息 B: 选出选修Cl课程的学生姓名 C: 选出Student中学生号与SC中学生号相等的信息 D: 选出Student和SC中的一个关系