Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-071 Topic 3 Question 83 Discussion

Actual exam question for Oracle's 1Z0-071 exam
Question #: 83
Topic #: 3
[All 1Z0-071 Questions]

Examine these two queries and their output:

SELECT deptno, dname FROM dept;

SELECT ename, job, deptno FROM emp ORDER BY deptno;

Now examine this query:

SELECT ename, dname

FROM emp CROSS JOIN dept WHERE job = 'MANAGER'

AND dept.deptno IN (10, 20) ;

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Renay
14 days ago
Hmm, the CROSS JOIN looks a bit suspicious to me. I wonder if there's a more efficient way to get the same result without generating a Cartesian product first. But I guess the answer is still D) 12.
upvoted 0 times
...
Yolande
17 days ago
This seems straightforward. The CROSS JOIN will create a result set with all possible combinations of employees and departments, and the WHERE clause will restrict it to only managers in departments 10 and 20. The correct answer is D) 12.
upvoted 0 times
...
Luis
18 days ago
So the correct answer should be C) 3, as there are 3 managers in departments 10 and 20.
upvoted 0 times
...
Abel
22 days ago
The CROSS JOIN between the emp and dept tables will generate a Cartesian product, and the WHERE clause will filter the rows where the job is 'MANAGER' and the department number is 10 or 20. The number of rows in the output should be 12.
upvoted 0 times
Wilbert
19 hours ago
I'm not sure, maybe it's 6 rows?
upvoted 0 times
...
Kimbery
2 days ago
I think it will be 12 rows as well.
upvoted 0 times
...
Laila
7 days ago
The output should be 12 rows.
upvoted 0 times
...
...
Cassandra
23 days ago
I agree, it looks like we need to find the employees with the job title 'MANAGER' in departments 10 or 20.
upvoted 0 times
...
Luis
29 days ago
I think the question is about joining tables based on certain conditions.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77