ORACLE选择题
16)ORACLE中,执行语句:SELECTaddress1||','||address2||','||address2"Adress"FROMemploy;将会返回()...
16) ORACLE中,执行语句: SELECT address1||','||address2||','||address2 "Adress" FROM employ; 将会返回()列。(选择一项)
a) 0 b) 1 c) 2 d) 3
17) Oracle数据库中,通过()访问能够以最快的方式访问表中的一行。(选择一项)
a) 主键 b) Rowid c) 唯一索引 d) 整表扫描
18) Oracle数据库中,以下()命令可以删除整个表中的数据,并且无法回滚。(选择一项)
a) drop b) delete c) truncate d) cascade
19) 在Oracle中,以下是STUDENTS表的结构:
SID NUMBER NOT NULL, Primary Key
SNAME VARCHAR2(30)
COURSE_ID VARCHAR2(10) NOT NULL
MARKS NUMBER
你需要查询参加了课程ID为C10的考试,并且分数排在前10名的学生,以下()语句能够实现此功能。(选择一项)
a) SELECT SID, marks, ROWNUM "Rank" FROM students
WHERE ROWNUM <= 10 AND course_id = ‘C10’ ORDER BY marks DESC;
b) SELECT SID, marks, ROWNUM "Rank" FROM students
WHERE ROWNUM <= 10 AND course_id = ‘C10’ ORDER BY marks;
c) SELECT SID, marks, ROWNUM "Rank" FROM (SELECT SID, marks FROM students
WHERE ROWNUM <= 10 AND course_id = ‘C10’ ORDER BY marks DESC);
d) SELECT SID, marks, ROWNUM "Rank"
FROM (SELECT SID, marks FROM students WHERE course_id = ‘C10’ ORDER BY marks DESC)
WHERE ROWNUM <= 10;
20) 在Oracle中,以下是STUDENTS表的结构:
STUDENT_ID NUMBER NOT NULL,Primary Key (学生编号)
STUDENT_NAME VARCHAR2(30) (学生姓名)
COURSE_ID VARCHAR2(10) NOT NULL (课程编号)
MARKS NUMBER (分数)
要查询课程编号为”SQL”的分数排在前10名的学生,以下()语句能实现次功能。(选择一项)
a) SELECT student_id,marks,ROWNUM ”Rank” FROM students
WHERE ROWUNM<=10AND course_id=’SQL’ ORDER BY marks DESC;
b) SELECT student_id,marks,ROWUNM”Rank” FROM students
WHERE ROWUNM<=10 ANDcourse_id=’SQL’ ORDER BY marks;
c) SELECT student_id,marks,ROWUNM”Rank” FROM students
WHERE ROWUNM<=10 AND coursr_id=’SQL’ ORDER BY marks DESC;
d) SELECT student_id,marks,ROWUNM”RANK” FROM(SELECT student_id,marks
FROM students WHERE course_id=’SQL’ ORDER BY marks DESC)
WHERE ROWUNM<=10; 展开
a) 0 b) 1 c) 2 d) 3
17) Oracle数据库中,通过()访问能够以最快的方式访问表中的一行。(选择一项)
a) 主键 b) Rowid c) 唯一索引 d) 整表扫描
18) Oracle数据库中,以下()命令可以删除整个表中的数据,并且无法回滚。(选择一项)
a) drop b) delete c) truncate d) cascade
19) 在Oracle中,以下是STUDENTS表的结构:
SID NUMBER NOT NULL, Primary Key
SNAME VARCHAR2(30)
COURSE_ID VARCHAR2(10) NOT NULL
MARKS NUMBER
你需要查询参加了课程ID为C10的考试,并且分数排在前10名的学生,以下()语句能够实现此功能。(选择一项)
a) SELECT SID, marks, ROWNUM "Rank" FROM students
WHERE ROWNUM <= 10 AND course_id = ‘C10’ ORDER BY marks DESC;
b) SELECT SID, marks, ROWNUM "Rank" FROM students
WHERE ROWNUM <= 10 AND course_id = ‘C10’ ORDER BY marks;
c) SELECT SID, marks, ROWNUM "Rank" FROM (SELECT SID, marks FROM students
WHERE ROWNUM <= 10 AND course_id = ‘C10’ ORDER BY marks DESC);
d) SELECT SID, marks, ROWNUM "Rank"
FROM (SELECT SID, marks FROM students WHERE course_id = ‘C10’ ORDER BY marks DESC)
WHERE ROWNUM <= 10;
20) 在Oracle中,以下是STUDENTS表的结构:
STUDENT_ID NUMBER NOT NULL,Primary Key (学生编号)
STUDENT_NAME VARCHAR2(30) (学生姓名)
COURSE_ID VARCHAR2(10) NOT NULL (课程编号)
MARKS NUMBER (分数)
要查询课程编号为”SQL”的分数排在前10名的学生,以下()语句能实现次功能。(选择一项)
a) SELECT student_id,marks,ROWNUM ”Rank” FROM students
WHERE ROWUNM<=10AND course_id=’SQL’ ORDER BY marks DESC;
b) SELECT student_id,marks,ROWUNM”Rank” FROM students
WHERE ROWUNM<=10 ANDcourse_id=’SQL’ ORDER BY marks;
c) SELECT student_id,marks,ROWUNM”Rank” FROM students
WHERE ROWUNM<=10 AND coursr_id=’SQL’ ORDER BY marks DESC;
d) SELECT student_id,marks,ROWUNM”RANK” FROM(SELECT student_id,marks
FROM students WHERE course_id=’SQL’ ORDER BY marks DESC)
WHERE ROWUNM<=10; 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询