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.
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.
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.
Renay
14 days agoYolande
17 days agoLuis
18 days agoAbel
22 days agoWilbert
19 hours agoKimbery
2 days agoLaila
7 days agoCassandra
23 days agoLuis
29 days ago