exam questions

Exam 1z0-082 All Questions

View all questions & answers for the 1z0-082 exam

Exam 1z0-082 topic 1 question 12 discussion

Actual exam question from Oracle's 1z0-082
Question #: 12
Topic #: 1
[All 1z0-082 Questions]

Which three statements are true about a self join? (Choose three.)

  • A. The ON clause must be used
  • B. The query must use two different aliases for the table
  • C. It must be an equijoin
  • D. It must be an inner join
  • E. The ON clause can be used
  • F. It can be an outer join
Show Suggested Answer Hide Answer
Suggested Answer: BEF 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Rivaldo11
Highly Voted 3 years, 12 months ago
B, E and F
upvoted 18 times
ama
3 years, 12 months ago
Good Hint
upvoted 1 times
...
...
escoletsgo1
Highly Voted 3 years, 10 months ago
B, E, F
upvoted 6 times
...
ymdaaa
Most Recent 2 months, 3 weeks ago
Selected Answer: BEF
B,E,F 自己結合は内部も外部も対応してるのでDは誤りです。
upvoted 1 times
...
nautil2
10 months ago
Selected Answer: BEF
A - FALSE; use OLD syntax, e.g. SELECT ... FROM employees e, employees m WHERE e.mgr=m.empno ... B - TRUE; when omitting, the error "ORA-00918: column ambiguously defined" appears C - FALSE; e.g. SELECT ... FROM employees e1, employees e2 WHERE e1.msal > e2.msal D - FALSE; valid query is e.g. SELECT e1.empno,e1.ename,e2.ename ... FROM employees e1 RIGHT OUTER JOIN employees e2 ON e1.mgr = e2.empno; E - TRUE; valid query is e.g. SELECT e.ename employee,e.bdate birth, m.ename manager FROM employees e JOIN employees m ON e.mgr = m.empno; F - TRUE; see answer B
upvoted 2 times
...
Oracle2020
10 months, 3 weeks ago
The correct answers are B,E,F C and D are incorrect because it must not be an equijoin or an inner join. That is, it can be an equijoin , non-equijoin, inner join, outer join. A is incorrect, because it is not mandatory for an inner join to use the on clause, if you use old inner join syntax. That is, you can join two tables in a select, without using the word inner join and on clause.
upvoted 1 times
...
wchoi189
1 year, 2 months ago
I meant to say BCE
upvoted 2 times
...
wchoi189
1 year, 2 months ago
B,C,F for me. Joining a table to itself on a condition is called a self join. A table is joined to itself to compare rows in the same table. The join condition would have to be an equijoin. If it is not there is another name for the join and it's called non equijoins. I guess a self non equijoin would be possible but this goes against the point I'm making. A self join is joining the same table to itself ON a condition and that is why it has to be an equijoin. For example the left outer joined table would show all the rows from the left and unmatched rows on the right filled with nulls where there was no matches. I don't think in self joins there would be any unmatched rows due to a missing column on the right. An outer self join is not possible because it's the same table your joining. Again, you can force a outer self join but this is more of an outer join than a self join.
upvoted 1 times
...
Franky_T
2 years, 3 months ago
Selected Answer: BEF
When you are doing a self-join, keep in mind that you are joining two "individual" data sets. There exists no restriction within Oracle that forces you to use an ON clause join rather than a WHERE clause join, or an INNER join versus an OUTER join.
upvoted 1 times
...
Datajimm
2 years, 4 months ago
Selected Answer: BEF
a) false: you can use WHERE clause instead b) true: otherwise it reports ORA-00918 c) false: can be any condition d) false: can be any join e) true: can be used, but not necessary f) true: can be any join
upvoted 3 times
...
ryuah
2 years, 6 months ago
B,E,F is correct
upvoted 1 times
...
flaviogcmelo
3 years, 2 months ago
I would like to understand why the ON clause "can" instead of "must" be used? My answer was A, B and F.
upvoted 2 times
nobody347
3 years, 1 month ago
u can make self join using WHERE
upvoted 1 times
...
...
saif_alrwiliy
3 years, 10 months ago
Actually the Self Join CAN be the A, C and D. The word MUST makes the question wrong.
upvoted 2 times
...
avanand
3 years, 10 months ago
B, D , E looks correct. I don't think self join can be outer.
upvoted 3 times
adoptc94
3 years, 10 months ago
The correct answers should be B, E and F a self join can also be an outer join. There is no difference for self joins. A self join is just two tables being joined. They just happen to be two copies of the same data
upvoted 3 times
...
elvegaa
3 years, 8 months ago
Self outer joins are also possible, and plausible. Figure a table with employees like: id name boss -- ----------- ------------- 1 John NULL 2 Paul 1 3 Scott 1 4 Kate 3 You can build a self outer join to retrieve a list of employees names and their bosses names, if any.
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago