OCP 1Z0 051 126
来源:互联网 发布:具体网络架构图 编辑:程序博客网 时间:2024/05/19 21:17
126. View the Exhibit and examine the data in the PROJ_TASK_DETAILS table.
The PROJ_TASK_DETAILS table stores information about tasks involved in a project and the relation
between them.
The BASED_ON column indicates dependencies between tasks. Some tasks do not depend on the
completion of any other tasks.
You need to generate a report showing all task IDs, the corresponding task ID they are dependent on, and
the name of the employee in charge of the task it depends on.
Which query would give the required result?
A. SELECT p.task_id, p.based_on, d.task_in_charge
FROM proj_task_details p JOIN proj_task_details d
ON (p.based_on = d.task_id);
B. SELECT p.task_id, p.based_on, d.task_in_charge
FROM proj_task_details p LEFT OUTER JOIN proj_task_details d
ON (p.based_on = d.task_id);
C. SELECT p.task_id, p.based_on, d.task_in_charge
FROM proj_task_details p FULL OUTER JOIN proj_task_details d
ON (p.based_on = d.task_id);
D. SELECT p.task_id, p.based_on, d.task_in_charge
FROM proj_task_details p JOIN proj_task_details d
ON (p.task_id = d.task_id);
A 内联不能显示based_on为空的数据
C FULL JOIN 匹配的数据显示在同行,并把所有不匹配的数据分行显示
为了便于观察,我们增加一列显示,可以看到下面 多了两列上级数据P02 P04
D 关联条件不对,相当于直接取单表数据
Answer: B
The PROJ_TASK_DETAILS table stores information about tasks involved in a project and the relation
between them.
The BASED_ON column indicates dependencies between tasks. Some tasks do not depend on the
completion of any other tasks.
You need to generate a report showing all task IDs, the corresponding task ID they are dependent on, and
the name of the employee in charge of the task it depends on.
Which query would give the required result?
A. SELECT p.task_id, p.based_on, d.task_in_charge
FROM proj_task_details p JOIN proj_task_details d
ON (p.based_on = d.task_id);
B. SELECT p.task_id, p.based_on, d.task_in_charge
FROM proj_task_details p LEFT OUTER JOIN proj_task_details d
ON (p.based_on = d.task_id);
C. SELECT p.task_id, p.based_on, d.task_in_charge
FROM proj_task_details p FULL OUTER JOIN proj_task_details d
ON (p.based_on = d.task_id);
D. SELECT p.task_id, p.based_on, d.task_in_charge
FROM proj_task_details p JOIN proj_task_details d
ON (p.task_id = d.task_id);
CREATE OR REPLACE VIEW proj_task_details(task_id, based_on,task_in_charge) ASSELECT 'P01',NULL,'KING' FROM dual UNION ALLSELECT 'P02','P01','KOCHAR' FROM dual UNION ALLSELECT 'P03',NULL,'GREEN' FROM dual UNION ALLSELECT 'P04','P03','SCOTT' FROM dual;
A 内联不能显示based_on为空的数据
SQL> SELECT p.task_id, p.based_on, d.task_in_charge 2 FROM proj_task_details p 3 JOIN proj_task_details d 4 ON (p.based_on = d.task_id);TASK_ID BASED_ON TASK_IN_CHARGE------- -------- --------------P02 P01 KINGP04 P03 GREEN2 rows selected
C FULL JOIN 匹配的数据显示在同行,并把所有不匹配的数据分行显示
为了便于观察,我们增加一列显示,可以看到下面 多了两列上级数据P02 P04
SQL> SELECT p.task_id, p.based_on, d.task_id, d.task_in_charge 2 FROM proj_task_details p 3 FULL OUTER JOIN proj_task_details d 4 ON (p.based_on = d.task_id) 5 ORDER BY 1, 3;TASK_ID BASED_ON TASK_ID TASK_IN_CHARGE------- -------- ------- --------------P01 P02 P01 P01 KINGP03 P04 P03 P03 GREEN P02 KOCHAR P04 SCOTT6 rows selected
D 关联条件不对,相当于直接取单表数据
SQL> SELECT p.task_id, p.based_on, d.task_in_charge 2 FROM proj_task_details p 3 JOIN proj_task_details d 4 ON (p.task_id = d.task_id);TASK_ID BASED_ON TASK_IN_CHARGE------- -------- --------------P01 KINGP02 P01 KOCHARP03 GREENP04 P03 SCOTT4 rows selected
SQL> SELECT p.task_id, p.based_on, d.task_in_charge 2 FROM proj_task_details p 3 LEFT OUTER JOIN proj_task_details d 4 ON (p.based_on = d.task_id) 5 ORDER BY 1;TASK_ID BASED_ON TASK_IN_CHARGE------- -------- --------------P01 P02 P01 KINGP03 P04 P03 GREEN4 rows selected
Answer: B
0 0
- OCP 1Z0 051 126
- OCP 1Z0 052 126
- OCP 1Z0 053 126
- OCP 1Z0 051 1
- OCP 1Z0 051 2
- OCP 1Z0 051 3
- OCP 1Z0 051 4
- OCP 1Z0 051 5
- OCP 1Z0 051 6
- OCP 1Z0 051 7
- OCP 1Z0 051 8
- OCP 1Z0 051 9
- OCP 1Z0 051 10
- OCP 1Z0 051 11
- OCP 1Z0 051 12
- OCP 1Z0 051 13
- OCP 1Z0 051 14
- OCP 1Z0 051 15
- matlab转c
- 每日算法之十六:4sum
- SwipeRefreshLayout: How to use
- 百字3元的论文摘要,——我们要买来些什么
- vc++使用EmptyWorkingSet来清理程序的内存
- OCP 1Z0 051 126
- 三星南京研发中心2014暑期实习嵌入式开发面试笔试部分
- 机房收费系统集锦(一)---打开重复窗体
- 深入理解Activity的生存期(二)
- SPI接口调试
- 每天,每周,每月,每年程序员该做的事情
- DSP学习指南
- 国内外著名科技博客
- JAVA调用动态链接库DLL之JNative学习