网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
设数据库中已有教材中的Student(Sno,Sname,Ssex,Sage,Sdept)、Course(Cno,Cname,Credit,Semster)和SC(Sno,Cno,Grade)表。现要查询学生选的第2学期开设课程的情况,只需列出学号、姓名、所在系和所选的课程号。该查询涉及到的表是()。
- A、仅Student表
- B、仅Student和SC表
- C、仅Student和Course表
- D、Student、SC和Course表
参考答案
更多 “设数据库中已有教材中的Student(Sno,Sname,Ssex,Sage,Sdept)、Course(Cno,Cname,Credit,Semster)和SC(Sno,Cno,Grade)表。现要查询学生选的第2学期开设课程的情况,只需列出学号、姓名、所在系和所选的课程号。该查询涉及到的表是()。A、仅Student表B、仅Student和SC表C、仅Student和Course表D、Student、SC和Course表” 相关考题
考题
关系模式Student的候选关键码有A.1个,为 (Sno, Cno)B.1个,为 (Sno, Cno, Tname)C.2个,为 (Sno, Sname, Cno) 和 (Sno, Cno, Tname)D.2个,为 (Sno, Sname, Cno) 和 (Sname, Cno, Tname)
考题
(40)查找学生姓名及其所选修课程号和成绩,正确的 SQL 语句是A)SELECT sname FROM student, SELECT cno,grade FROM sc WHERE student.sno =sc.snoB) FROM sname,cno,grade FROM student,course WHERE student.sno =course.cnoC) SELECT sname ,canme,grade FROM student,course,sc WHERE student.sno =sc.sno and sc.cno=course.cnoD) SELECT sname ,cno,grade FROM student,sc WHERE student.sno =sc.sno
考题
已知关系模式:sc(sno, sname, grade),各属性含义依次为学号、课程名、分数。要查找“数据库”课分数最高的学生的学号,正确的SQL语句是A.SELECT sno FROM sc WHERE sname="数据库" AND grade=MAX(grade)B.SELECT sno FROM sc FOR sname="数据库" OR grade>=MAX(grade)C.SELECT sno FROM sc WHERE sname="数据库" AND grade=(SELECT MAX(grade) FROM scD.SELECT sno FROM sc FOR sname="数据库" OR grade=(SELECT MAX (grade) FROM sc
考题
对于学生信息表:student(sno,sname,sex,age,dept),如果把学生“小明”的姓名改为“小强”,则正确的语句是( )。A)UPDATE SET sname=‘小明’WHERE sname=‘小强’B)UPDATE student SET sname=‘小明’WHERE sname=‘小强’C)UPDATE student SET sname=‘小强’D)UPDATE student SET sname=‘小强’WHERE sname=‘小明’
考题
关系模式Student(sno,Sname,Cno,Cname,Grade,Tname,Taddr)的属性分别表示学号、学生姓名、课程号、课程名、成绩、任课教师名和教师地址。其中,一个学生可以选若干门课程,一个教师可以讲授若干门课程,一门课程可以由多个教师讲授,对于同一门课程,学生只能选定一个教师讲授的课程,教师不会重名。下列有关关系模式Student的分解中,是无损联接并保持函数依赖的是——。A.{(Sno,Sname,Cno,rname,raddr),(sno,Sname,Cno,Cnarne,Grade)}E:INFB.{(Sno,Sname),(sn0,Cno,Grade,Tname,。Taddr),(Cno,Cname)∈2NFC.{(Sno,Sname),(sno,Cno,Grade),(rI'name,Taddr),(Cno,Cname,)∈3NFD.{(Sno,Sname),(Sno,Cno,Grade),(Tname,Taddr),(Tname,Cno),(Cno,Cname)}∈BCNF
考题
对于学生信息表:student(sno,sname,sex,age,dept),能够得到年龄在20岁到22岁之间的学生的姓名和学号的语句是A.SELECT * FROM student WHERE age BETWEEN 20 AND 22B.SELECT sname,sno FROM student WHERE age BETWEEN 20 AND 22C.SELECT sname,sno FROM student WHERE age>=20D.SELECT sname,sno FROM student WHERE age<=22
考题
设有学生数据库:student(sno,sname,sex,age,dept)。现要查询所有刘姓学生的信息,可使用如下的 SQL语句:SELECT*FROM student WHERE【 】。
考题
根据SQL标准,增加一条记录到表student,学号sno是11301,姓名sname是“snoopy”,年龄age是20。其中student表中包括学号、姓名、年龄、籍贯、系别等属性,并且属性除sno外皆可取空值。下面哪条是参考的?()A insert into student values(sno=11301, sname=’snoopy’, age =20)B insert into student(sno,sname,age) values(11301,’snoopy’,20)C insert into student set sno=11301, sname=’snoopy’, age = 20D insert into student values (11301, ’snoopy’, 20)
考题
根据SQL标准,查询表student(sno,sname,sex,dept)中所有学生的选修课程数,其中选修记录在表SC(sno,cno,grade)中,两表中sno为关联字段。下面哪条语句合适?()A select sno,count(cno) from SCB select sno,count(cno) from studentC select a.sno,count(cno) from student a left outer join SCD select a.sno,count(cno) from SC left outer join student a
考题
关系模式Student的候选关键码有A.1个,为(Sno,Cno)B.1个,为(Sno,Cno,Tname)C.2个,为(Sno,Sname,Cno)和(Sno,Cno,Tname)D.2个,为(Sno,Sname,Cno)和(Sno,Cno,Tname)
考题
对于学生信息表STUDENT(SNO, SNAME,SEX,AGE,DEPT)(STUDENT由学号SNO、姓名SNAME、性别SEX、年龄AGE、所在系DEPT 5个属性组成,其中SNO为主码),求年龄20~23岁之间的学生姓名和年龄,正确的语句是( )。A.SELECT SNAME,AGE FROM STUDENT WHERE AGE20 AND AGE23B. SELECT*FROM STUDENT WHERE AGE BETWEEN 20 AND 23C.SELECT SNAME,AGE FROM STUDENT WHERE AGE BETWEEN 20 AND 23D.以上均不正确
考题
查找学生姓名及其所选修课程的课程号和成绩,正确的SQL语句是A.SELECT sname FROM student,SELECT cno,grade FROM sc WHERE student.sno=sc.snoB.SELECT sname,cno,grade FROM student,course WHERE student.sno=course.cnoC.SELECT sname,cname,grade FROM student,course,sc WHERE student.sno=sc.sno and sc.cno=course,cnoD.SELECT sname,cno,grade FROM student,sc WHERE student.sno=sc.sno
考题
有如下用户定义类型及操作语句: Tyoe Student SNo As String Sname As String SAge As Integer End Type Dim Stu As Student With Stu SNo=”200609001” SName=”陈果果“ A ge=19 End With 执行MsgBox Stu,Age 后,消息框输出结果是 【13】
考题
对于数据表:student(sno,sname,sex,age,grade),查询学习成绩为空的学生的学号和姓名,下面语句正确的是______。A.SELECT sno,sname FROM student WHERE gade=NULLB.SELECT sno,sname FROM student WHERE grade IS NULLC.SELECT sno,age FROM student WHERE grade IS NULLD.SELECT mo,age FROM student WHERE grade=NULL
考题
试题基于如下三个关系,其中学生关系student的主码是sno,课程关系course的主码是cno,选课关系SC的主码是(sno,cno)。查找学生姓名及其所选修课程的课程号和成绩,正确的SQL语句是( )。A)SELECT sname FROM student,SELECT cno,grade FROM scWHERE student.sno=sc.snoB)SELECT sname, cno,grade FROM student,courseWHERE student.sno=course.cnoC)SELECT sname, cname,grade FROM student,course, scWHERE student.sno=sc.Snoand sc.cno=course.cnoD)SELECT sname,cno, grade FROM student,scWHERE student.sno=sc.sno
考题
对于学生信息表:student(sno,sname,sex,age,dept),要查询所有刘姓学生的信息,正确的语句是A.SELECT * FROM student WHERE sname LIKE'刘 * 'B.SELECT * FROM student WHERE sname LIKE'刘 $'C.SELECT * FROM student WHERE sname LIKE'刘%'D.SELECT * FROM student WHERE sname LIKE'刘'
考题
建立一个学生信息表student,要求它由学号sno、姓名sname、性别sex、年龄age4个属性组成,其学号属性唯一,学号、姓名字段不能为空。下列语句正确的是A.CREATE TABLE student(sno char(5) NOT NULL sname char(8) NOT NULL sex char(1) age int);B.CREATE TABLE student (sno char(5) NOT NULL UNIQUE sname char(8) sex char(1) age int);C.CREATE TABLE (sno char(5) NOT NULL UNIQUE sname char(8) NOT NULL sex char(1) age int);D.CREATE TABLE student (sno char(5) NOT NULL UNIQUE sname char(8) NOT NULL sex char(1) age int);
考题
对于学生信息表:student(sno, sname, sex, age, dept),能够得到年龄在20岁于22岁之间的学生的姓名和学号的语句是A.SELECT * FROM student WHERE age BETWEEN 20 AND 22B.SELECT sname, sno FROM student WHERE age BETWEEN 20 AND 22C.SELECT sname,sno FROM student WHERE age>=20D.SELECT shame,sno FROM student WHERE age<=22
考题
对于学生信息表:student(sno, sname, sex, age, dept),如果把学生“张明”的姓名改为“张岩”,则正确的语句是A.UPDATE SET sname='张明'WHERE sname='张岩'B.UPDATE student SET sname='张明' WHERE sname='张岩'C.UPDATE student SET sname='张岩'D.UPDATE student SET sname='张岩' WHERE sname='张明'
考题
对于学生信息表:student(sno,sname,sex,age,grade),查询学习成绩为空的学生的学号和姓名,下面语句正确的是A.SELECT sno,sname FROM student WHERE grade=NULLB.SELECT sno,sname FROM student WHERE grade IS NULLC.SELECT sno,age FROM student WHERE grade IS NULLD.SELECT sno,age FROM student WHERE grade=NULL
考题
对于学生信息表:student(sno,shame,sex,age,dept),如果把学生“张明”的姓名改为“张岩”,则正确的语句是A.UPDATE SET sname='张明'WHERE sname='张岩'B.UPDATE student SET sname='张明'WHERE sname='张岩'C.UPDATE student SET sname='张岩'D.UPDATE student SET sname='张岩'WHERE sname='张明'
考题
建立一个学生信息表student,要求它由学号sno,姓名sname,性别sex,年龄age,4个属性组成,其学号属性惟一,学号、姓名字段不能为空。下列语句正确的是A.CREATE TABLE student (sno char(5)NOT NULL sname char(8)NOT NULL sex char age int);B.CREATE TABLE student (sno char(5)NOT NULL UNIQUE sname char(8) sex char age int);C.CREATE TABLE (sno char(5)NOT NULL UNIQUE sname char(8)NOT NULL sex char age int);D.CREATE TABLE student (sno char(5)NOT NULL UNIQUE sname char(8)NOT NULL sex char age int);
考题
8 )在 “ 学生选课 ” 数据库中的两个关系如下:S ( SNO , SNAME , SEX , AGE ) , SC ( SNO , CNO , GRADE )则与 SQL 命令 SELECT sname FROM s WHERE sno IN ( SELECT sno FROM sc WHERE grade60 )等价的关系代数表达式是 __________ 。
考题
设数据库中已有教材中的Student(Sno,Sname,Ssex,Sage,Sdept)、Course(Cno,Cname,Credit,Semster)和SC(Sno,Cno,Grade)表。现要查询学生选的第2学期开设课程的情况,只需列出学号、姓名、所在系和所选的课程号。该查询涉及到的表是()。A仅Student表B仅Student和SC表C仅Student和Course表DStudent、SC和Course表
考题
设student表中存放了学生的信息,要从student表中查出姓名(sname)的第二个字是“光”或"明"的学生的信息,正确的查询语句为: select * from student where()A、sname LIKE ’_[^光明]%’B、.sname LIKE ’_^光明%’C、sname LIKE ’_光明%’D、sname LIKE ’_[光明]%’
考题
查询名字中第2个字为“阳”的学生的姓名和学号,正确的是()A、Select Sname,Sno from student where Sname like‘_阳%’;B、Select Sname,Sno from student where Sname like‘阳%’;C、Select Sname,Sno from student where Sname like‘_阳’;D、Select Sname,Sno from student where Sname like‘阳_%’;
考题
单选题设数据库中已有教材中的Student(Sno,Sname,Ssex,Sage,Sdept)、Course(Cno,Cname,Credit,Semster)和SC(Sno,Cno,Grade)表。现要查询学生选的第2学期开设课程的情况,只需列出学号、姓名、所在系和所选的课程号。该查询涉及到的表是()。A
仅Student表B
仅Student和SC表C
仅Student和Course表D
Student、SC和Course表
热门标签
最新试卷