单选题Given the following query:SELECT last_name, first_name, age, hire_date FROM employee WHERE age 40Which of the following clauses must be added to return the rows sorted by AGE, oldest first, and by LAST_NAME, from A to Z?()ASORT BY age ASC, last_nameBSORT BY age DESC, last_nameCORDER BY age DESC, last_nameDORDER BY age ASC, last_name
单选题
Given the following query:SELECT last_name, first_name, age, hire_date FROM employee WHERE age > 40Which of the following clauses must be added to return the rows sorted by AGE, oldest first, and by LAST_NAME, from A to Z?()
A
SORT BY age ASC, last_name
B
SORT BY age DESC, last_name
C
ORDER BY age DESC, last_name
D
ORDER BY age ASC, last_name
参考解析
解析:
暂无解析
相关考题:
(34)查询所有目前年龄是22岁的学生信息:学号,姓名和年龄,正确的命令组是A)CREATE VIEW AGE LIST AS; SELECT学号,姓名,YEAR(DATEQ)-YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM AGE LIST WHERE年龄=22B)CREATE VIEW AGE LIST AS; SELECT学号,姓名,YEAR(出生日期)FROM学生;SELECT学号,姓名,年龄FROM AGE -L IST WHERE YEAR(出生日期)=22C)CREATE VIEW AGE LIST AS; SELECT学号,姓名,YEAR(DATEQ)-YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM学生WHERE YEAR(出生日期)=22D)CREATE VIEW AGE LIST AS STUDENT; SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生;SELECT学号,姓名,年龄FROM STUDENT WHERE年龄=22
检索所有比“王华”年龄大的学生的姓名、年龄和性别,正确的SELECT语句是______。A.SELECT SN,AGE,SEX FROM S SHERE AGE>(SELECT AGE FROM S WHERE SN='王华')B.SELECT SN,AGE,SEX FROM S WHERE SN='王华'C.SELECT SN,ACE,SEX FROM S WHERE AGE>(SELECT ACE WHERE SN='王华')D.SELECT SN,ACE,SEX FROM S WHERE ACE>王华 AGE
对于学生信息表: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由学号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) 以上均不正确
检索所有比"王华"年龄大的学生姓名、年龄和性别。正确的SELECT语句是() A、SELECT SN,AGE,SEX FROM SSHERE AGE>(SELECT AGE FROM S)WHERE SN=’王华’)B、SELECT SN,AGE,SEXFROM SWHERE SN=’王华’C、SELECT SN,ACE,SEX FROM SWHERE AGE>(SELECT ACEWHERE SN=’王华’)D、SELECT SN,ACE,SEX FROM SWHERE ACE>王华AGE
根据SQL标准,要查询表student中平均年龄age小于21的所在系dept及其平均年龄值,下面哪条语句适用?()A select dept,avg(age) from student where avg(age)B select dept,avg(age) from student group by dept having avg(age)C select dept,avg(age) from student having avg(age)D select dept,avg(age) from student group by dept where avg(age)
根据SQL标准,下面哪句语句能够找出年龄最小的同学?其中age为学生表student中的年龄字段,sno为学生的学号。()A select max(age) from studentB select sno from student where age = max(age)C select sno from student having age = max(age)D select sno from student a where a.age
根据SQL标准,下面哪条语句与select min(age) from student等效?()A select age from student where age >= min(age)B select distinct age from student where age >= all min(age)C select distinct a.age from student a where a.ageD select distinct a.age from student a where a.age
根据SQL标准,要查询表student中所有年龄age小于所有学生的平均年龄的记录,下面哪条语句适用?()A select * from student where ageB select * from student having ageC select * from student a where a.ageD select * from student a where (select avg(b.age) from student b ) >= a.age
S(S#,SN,SEX,AGE,DEPT) C(C#,CN) SC(S#,C#,GRADE)其中:S#为学号,SN为姓名,SEX为性别,AGE为年龄,DEPT为系别,C#为课程号, CN为课程名,GRADE为成绩。检索所有比“王华”年龄大的学生姓名、年龄和性别。正确的SELECT语句是______。A.SELECT SN,AGE,SEX FROM S WHERE AGE>(SELECT AGE FROM S WHERE SN='王华')B.SELECT SN, AGE, SEX FROM S WHERE SN='王华'C.SELECT SN,AGE,SEX FROM S WHERE AGE>(SELECT AGE WHERE SN='王华')D.SELECT SN,AGE,SEX FROM S WHERE AGE>王华AGE
查询所有目前年龄是22岁的学生信息:学号,姓名和年龄,正确的命令组是( )。A.CREATE VIEW AGE LIST AS; SELECT 学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生; SELECT 学号,姓名,年龄FROM AGE LIST WHERE年龄=22B.CREATE VIEW AGE LIST AS; SELECT 学号,姓名,YEAR(出生日期) FROM 学生; SELECT 学号,姓名,年龄FROM AGE LIST WHERE YEAR(出生日期)=22C.CREATE VIEW AGE LIST AS; SELECT 学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生; SELECT 学号,姓名,年龄FROM学生WHEREYEAR(出生日期)=22D.CREATE VIEW AGE LIST AS STUDENT; SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM STUDENT WHERE年龄=22
S(S,SN,SEX,AGE,DEPT)C(C,CN)SC(S,C,GRADE)其中:S为学号,SN为姓名,SEX为性别,AGE为年龄,DEP S(S#,SN,SEX,AGE,DEPT) C(C#,CN) SC(S#,C#,GRADE) 其中:S#为学号,SN为姓名,SEX为性别,AGE为年龄,DEPT为系别,C#为课程号, CN为课程名,GRADE为成绩。检索所有比“王华”年龄大的学生姓名、年龄和性别。 正确的SELECT语句是______。A.SELECT SN,AGE,SEX FROM S WHERE AGE>(SELECT AGE FROM S WHERE SN=‘王华’)B.SELECT SN,AGE,SEX FROM S WHERE SN=‘王华’C.SELECT SN,AGE,SEX FROM S WHERE AGE>(SELECT AGE WHERE SN=‘王华’)D.SELECT SN,AGE,SEX FROM S WHERE AGE>王华 AGE
对于学生信息表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.以上均不正确
若要求查找“年龄大于18岁学生的学生号和姓名”,正确的SQL语句是( )。A.SELECT S#,SNAME FROM S WHERE AGE18B.SELECT S#,SNAME FROM S WHERE AGE=18C.SELECT S#,SNAME FROM S WHERE AGE'18'D.SELECT S#,SNAME FROM S WHERE AGE='18'
对于数据表: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
Given the following query:SELECT last_name, first_name, age, hire_date FROM employee WHERE age >40Which of the following clauses must be added to return the rows sorted by AGE, oldest first, and by LAST_NAME, from A to Z?()A.SORT BY age ASC, last_nameB.SORT BY age DESC, last_nameC.ORDER BY age DESC, last_nameD.ORDER BY age ASC, last_name
查询所有目前年龄是22岁的学生信息:学号,姓名和年龄,正确的命令组是A.CREATE VIEW AGE_LIST AS; SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM AGE_LIST WHERE年龄=22B.CREATE VIEW AGE_LIST AS; SELECT学号,姓名,YEAR(出生日期)FROM学生: SELECT学号,姓名,年龄FROM AGE_LIST WHERE YEAR(出生日期)=22C.CREATE VIEW AGE_LIST AS; SELECT学号,姓名,YEAR(DATE())-YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM学生WHERE YEAR(出生日期)=22D.CREATE VIEW AGE_LIST AS STUDENT; SELECT学号,姓名,YEAR(DATE()).YEAR(出生日期)年龄FROM学生; SELECT学号,姓名,年龄FROM STUDENT WHERE年龄=22
检索所有比“王华”年龄大的学生姓名、年龄和性别。正确的SELECT语句是______。A.SELECT SN,AGE,SEX FROM S WHERE AGE>(SELECT AGE FROM S WHERE SN='王华')B.SELECT SN,AGE,SEX FROM S WHERE SN='王华'C.SELECT SN,AGE, SEX FROM S WHERE AGE>(SELECT AGE WHERE SN='王华')D.SELECT SN,AGE,SEX FROM S WHERE AGE>王华 AGE
Given the following query:SELECT last_name, first_name, age, hire_date FROM employee WHERE age 40Which of the following clauses must be added to return the rows sorted by AGE, oldest first, and by LAST_NAME, from A to Z?()A、SORT BY age ASC, last_nameB、SORT BY age DESC, last_nameC、ORDER BY age DESC, last_nameD、ORDER BY age ASC, last_name
下列SQL语句中,能够完成求某列最大值的是()。A、SELECT AVG(Age) FROM StudentB、SELECT MAX(Age) FROM StudentC、SELECT MIN(Age) FROM StudentD、SELECT COUNT(*) FROM Student
对于学生信息表(XSB),包含字段:学号(SNO),姓名(SNAME),性别(SEX),年龄(AGE),所在系(DEPT),其中SNO为主码,检索年龄在20~30之间的学生姓名和年龄,正确的语句是()A、select sname,age from xsb where age20and age23B、select*from xsb where age between20 and 23C、select sname,age from xsb where agebetween20 and 23
数据库中有一张表名称为Student,有列Name,Age,IDCard,Sex。要求写SQL语句查询出表中年龄介于20和30岁之间的数据,下列哪个SQL语句是正确的?()A、Select* From Student Where Age=20 ANDAge=30B、Select* From Student Where Age=20 ANDAge=30C、Select* From Student Where Age BET WENN 20AND30D、Select* From Student Where Age=20Age=30"
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) HIRE_DATE DATE Which UPDATE statement is valid?()A、UPDATE employees SET first_name = 'John' SET last_name ='Smith' WHERE employee_id = 180;B、UPDATE employees SET first_name = 'John', SET last_name ='Smith' WHERE employee_id = 180;C、UPDATE employees SET first_name = 'John' AND last_name ='Smith' WHERE employee_id = 180;D、UPDATE employees SET first_name = 'John', last_name ='Smith' WHERE employee_id = 180;
Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2 (25) LAST_NAME VARCHAR2 (25) HIRE_DATE DATE Which UPDATE statement is valid? ()A、UPDATE employees SET first_name = 'John' SET last_name = 'Smith' WHERE employee_id = 180;B、UPDATE employees SET first_name = 'John', SET last_name = 'Smoth' WHERE employee_id = 180;C、UPDATE employee SET first_name = 'John' AND last_name = 'Smith' WHERE employee_id = 180;D、UPDATE employee SET first_name = 'John', last_name = 'Smith' WHERE employee_id = 180;
单选题Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2 (25) LAST_NAME VARCHAR2 (25) HIRE_DATE DATE Which UPDATE statement is valid? ()AUPDATE employees SET first_name = 'John' SET last_name = 'Smith' WHERE employee_id = 180;BUPDATE employees SET first_name = 'John', SET last_name = 'Smoth' WHERE employee_id = 180;CUPDATE employee SET first_name = 'John' AND last_name = 'Smith' WHERE employee_id = 180;DUPDATE employee SET first_name = 'John', last_name = 'Smith' WHERE employee_id = 180;
单选题Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2 (25) LAST_NAME VARCHAR2 (25) HIRE_DATE DATE Which UPDATE statement is valid?()AUPDATE employees SET first_name = 'John' SET last_name = 'Smith' WHERE employee_id = 180;BUPDATE employees SET first_name = 'John', SET last_name = 'Smoth' WHERE employee_id = 180;CUPDATE employee SET first_name = 'John' AND last_name = 'Smith' WHERE employee_id = 180;DUPDATE employee SET first_name = 'John', last_name = 'Smith' WHERE employee_id = 180;
单选题Given the following query:SELECT last_name, first_name, age, hire_date FROM employee WHERE age 40Which of the following clauses must be added to return the rows sorted by AGE, oldest first, and by LAST_NAME, from A to Z?()ASORT BY age ASC, last_nameBSORT BY age DESC, last_nameCORDER BY age DESC, last_nameDORDER BY age ASC, last_name
单选题Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) HIRE_DATE DATE Which UPDATE statement is valid?()AUPDATE employees SET first_name = 'John' SET last_name ='Smith' WHERE employee_id = 180;BUPDATE employees SET first_name = 'John', SET last_name ='Smith' WHERE employee_id = 180;CUPDATE employees SET first_name = 'John' AND last_name ='Smith' WHERE employee_id = 180;DUPDATE employees SET first_name = 'John', last_name ='Smith' WHERE employee_id = 180;