[Q][007]关于007的两个两个小问题

[复制链接]
查看11 | 回复9 | 2005-10-30 17:05:33 | 显示全部楼层 |阅读模式
QUESTION NO: 99
Which three are true regarding the use of outer joins? (Choose three.)
A. You cannot use IN operator in a condition that involves an outerjoin.
B. You use (+) on both sides of the WHERE condition to perform anouterjoin.
C. You use (*) on both sides of the WHERE condition to perform an outerjoin.
D. You use an outerjoin to see only the rows that do not meet the join condition.
E. In the WHERE condition, you use (+) following the name of the column in the table without matching rows, to perform an outerjoin.
F. You cannot link a condition that is involved in an outerjoin to another condition by using the OR operator.
Answer: D, E, F
QUESTION NO: 58
Examine the structure of the STUDENTS table:
STUDENT_ID
NUMBER NOT NULL, Primary Key
STUDENT_NAME VARCHAR2(30)
COURSE_ID
VARCHAR2(10) NOT NULL
MARKS
NUMBER
START_DATE DATE
FINISH_DATE DATE

You need to create a report of the 10 students who achieved the highest ranking in the course INT SQL and who completed the course in the year 1999.
Which SQL statement accomplishes this task?
A. SELECT student_ id, marks, ROWNUM "Rank" FROM students WHERE ROWNUM <= 10
AND finish_date BETWEEN '01-JAN-99' AND '31-DEC-99'
AND course_id = 'INT_SQL'
ORDER BY marks DESC;
B. SELECT student_id, marks, ROWID "Rank"
FROM students
WHERE ROWID <= 10
AND finish_date BETWEEN '01-JAN-99' AND '31-DEC-99'
AND course_id = 'INT_SQL'
ORDER BY marks;
C. SELECT student_id, marks, ROWNUM "Rank"
FROM (SELECT student_id, marks
FROM students
WHERE ROWNUM <= 10
AND finish_date BETWEEN '01-JAN-99' AND
'31-DEC-99'
AND course_id = 'INT_SQL'
ORDER BY marks DESC);
D. SELECT student_id, marks, ROWNUM "Rank:
FROM (SELECT student_id, marks
FROM students
ORDER BY marks)
WHERE ROWNUM <= 10
AND finish_date BETWEEN '01-JAN-99' AND '31-DEC-99'
AND course_id = 'INT_SQL';
Answer: D
感觉第一题的D不正确,而第二题没有正确答案。
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
1。A,E,F 选3个答案只能加上a了吧
2。D
我觉得d是对的呀,哪里不对了,具体指出来?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
1、A肯定不正确的吧——这里应该可以使用“IN”
2、You need to create a report of the 10 students who achieved the highest ranking in the course INT SQL and who completed the course in the year 1999.这一句中的“highest ranking”是不是表明检索结果要降序排列呢?可D是默认的ASC啊!?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
第二题A为何不对。.
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
最初由 eliren 发布
[B]第二题A为何不对。. [/B]

A肯定是不对的,取回来是几条记录都不一定呢!
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
Which two operators can be used in an outer join condition? (Choose two.)
A. =
B. in
C. or
D. and
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
Which two operators can be used in an outer join condition? (Choose two.)
A. =
B. in
C. or
D. and
你说选什么,其实严格来说,in是可以用的。
但这里只能选A,D了
第2题确实没有正确答案,d改成dsc就对了,
其它的选项都在胡说八道。
估计考试不会有这种题吧。
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
言之有道理!但愿真正考试的时候不会出现这样的题才好啊!呵呵~~
我准备下个礼拜开始考试(8i,今天托人去汇款了),不知道你什么打算?考8i?9i?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
我觉得还是一步到位考9i好,如果够钱的话:)
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
我还是打算考9i
来得及报名就这个周末去考了,不等了,看书要看到什么时候呀,呵呵
本来想考8 i 的,可6 门太多了,没办法,就是心疼那些银子!
byt:最新的tk是多少呀?我只有3。0 (哎,心虚的说)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行