对于学生信息表S(SNUMBER,SNAME,SEX,AGE,DEPT)(STUDENT由学号SN0,姓名SNAME,性别SEX,年龄AGE,所在系DEPT5个属性组成,其中SNUMBER为主码),求年龄20~23岁之间的学生姓名和年龄,正确的语句是( )。A) SELECT SNAME, AGE FROM S WHERE AGE20 OR AGE23B) SELECT SNAME, AGE FROM S WHERE AGE BETWEEN 20 AND 23C) SELECT * FROM S WHERE AGE BETWEEN 20 AND 23D) 以上均不正确
对于学生信息表S(SNUMBER,SNAME,SEX,AGE,DEPT)(STUDENT由学号SN0,姓名SNAME,性别SEX,年龄AGE,所在系DEPT5个属性组成,其中SNUMBER为主码),求年龄20~23岁之间的学生姓名和年龄,正确的语句是( )。
A) SELECT SNAME, AGE FROM S WHERE AGE>20 OR AGE<23
B) SELECT SNAME, AGE FROM S WHERE AGE BETWEEN 20 AND 23
C) SELECT * FROM S WHERE AGE BETWEEN 20 AND 23
D) 以上均不正确
相关考题:
( 32 ) 设有学生信息关系 STUDENT ( sno , sname , sex , age , dept ) 。 “ 查找信息系 ( IS 系 ) 中年龄小 于20 岁的学生的姓名 ” ,该操作正确的关系代数表达式是Ⅰ . π sname ( σ dept= ’ IS ’ ∧ age20( STUDENT ))Ⅱ . σ dept= ’ IS ’ ∧ age20 ( π sname ( STUDENT ))Ⅲ . σ sname ( π dept= ’ IS ’ ∧ age20( STUDENT ))A )仅 ⅠB )仅 ⅡC ) Ⅰ 和 ⅡD ) Ⅱ 和 Ⅲ
对于学生信息表: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, dept)。“查找信息系(IS系)中年龄小于20岁的学生的姓名”,该操作正确的关系代数表达式是______。Ⅰ.πsname(σdept='IS'∧age<20(STUDENT))Ⅱ.σdept='IS'∧age<20(πsname(STUDENT))Ⅲ.σsname(πdept='IS'∧age<20(STUDENT))A.仅ⅠB.仅ⅡC.Ⅰ和ⅡD.Ⅱ和Ⅲ
对于学生信息表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.以上均不正确
对于学生信息表: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
对于学生信息表S(SNUMBER,SNAME,SEX,AGE,DEPT)(STUDENT 由学号 SNO,姓名SNAME,性别SEX,年龄AGE,所在系DEPT5个属性组成,其中SNUMBER为主码),求年龄20~23岁之间的学生姓名和年龄,正确的语句是( )。A.SELECT SNAME,AGE FROM S WHERE AGE>20 AND AGE<23B.SELECT SNAME,AGE FROM S WHERE AGE BETWEEN 20 AND 23C.SELECT *FROM S WHERE. AGE BETWEEN 20 AND 23D.以上均不正确
8、学生表student包含学号sno、学生姓名sname、性别sex、年龄age、所在院系dept、籍贯native等字段,其中age为整型,其余字段均为字符型。现插入一条计算机学院学生的记录,学号为s320078,姓名为张强,性别为男,年龄为20,下列语句错误的是________。A.INSERT INTO tb_student (sno, sname, sex, age, dept, native) VALUES('s320078', '张强','男',20, '计算机');B.INSERT INTO tb_student (sno, sname, sex, age, dept) VALUES('s320078', '张强','男',20, '计算机');C.INSERT INTO tb_student VALUES('s320078', '张强','男',20, '计算机',null);D.INSERT INTO tb_student (dept, sno, sname, sex, age) VALUES('计算机', 's320078', '张强','男',20);
学生表student包含学号sno、学生姓名sname、性别sex、年龄age、所在院系dept、籍贯native等字段,其中age为整型,其余字段均为字符型。现插入一条计算机学院学生的记录,学号为s320078,姓名为张强,性别为男,年龄为20,下列语句错误的是________。A.INSERT INTO tb_student (sno, sname, sex, age, dept, native) VALUES('s320078', '张强','男',20, '计算机');B.INSERT INTO tb_student (sno, sname, sex, age, dept) VALUES('s320078', '张强','男',20, '计算机');C.INSERT INTO tb_student VALUES('s320078', '张强','男',20, '计算机',null);D.INSERT INTO tb_student (dept, sno, sname, sex, age) VALUES('计算机', 's320078', '张强','男',20);