exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 54 discussion

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

Which two are true about queries using set operators (UNION, UNION ALL, INTERSECT and MINUS)? (Choose two.)

  • A. The name of each column in the first SELECT list must match the name of the corresponding column in each subsequent SELECT list.
  • B. None of the set operators can be used when selecting CLOB columns.
  • C. There must be an equal number of columns in each SELECT list.
  • D. Each SELECT statement in the query can have an ORDER BY clause.
  • E. The FOR UPDATE clause cannot be specified.
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

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
jfc1
Highly Voted 1 year, 12 months ago
Selected Answer: BE
Set operations cannot be performed on BLOB, CLOB, BFILE, VARRAY, or nested table columns. BCE is the Answer
upvoted 6 times
...
jm9999
Highly Voted 1 year, 3 months ago
Selected Answer: CE
Union all works with clob.
upvoted 5 times
...
ArslanAltaf
Most Recent 9 months ago
B,C & E All correct
upvoted 3 times
ShahedOdeh
3 months, 4 weeks ago
strongly agree
upvoted 2 times
safasayed19
2 months, 3 weeks ago
YES..B C AND E ALL ARE CORRECT
upvoted 1 times
...
...
...
TATSSSS
10 months ago
CB The set operators are not valid on columns of type BLOB, CLOB, BFILE, VARRAY, or nested table. https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/The-UNION-ALL-INTERSECT-MINUS-Operators.html#GUID-B64FE747-586E-4513-945F-80CB197125EE
upvoted 1 times
...
hmatinnn
12 months ago
Selected Answer: CE
Should be C and E. Tried it out !
upvoted 3 times
...
Sangiii
1 year, 4 months ago
B: this option is wrong. we can use UNION ALL with 2 tables having columns with CLOB datatype. But we cannot use UNION,INTERSECT and MINUS SET operators as it performs removal of duplicate and sorting implicitly and could not work with CLOB.
upvoted 1 times
alelejaja
7 months, 2 weeks ago
Hi, but in official doc from oracle, i found: The set operators are subject to the following restrictions: The set operators are not valid on columns of type BLOB, CLOB, BFILE, VARRAY, or nested table. The UNION, INTERSECT, EXCEPT, and MINUS operators are not valid on LONG columns. If the select list preceding the set operator contains an expression, then you must provide a column alias for the expression in order to refer to it in the order_by_clause. You cannot also specify the for_update_clause with the set operators. You cannot specify the order_by_clause in the subquery of these operators. You cannot use these operators in SELECT statements containing TABLE collection expressions.
upvoted 3 times
...
...
MariGare
1 year, 5 months ago
B should be included into the TRUE answer: https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/The-UNION-ALL-INTERSECT-MINUS-Operators.html#GUID-B64FE747-586E-4513-945F-80CB197125EE The set operators are subject to the following restrictions: The set operators are not valid on columns of type BLOB, CLOB, BFILE, VARRAY, or nested table. The UNION, INTERSECT, and MINUS operators are not valid on LONG columns. If the select list preceding the set operator contains an expression, then you must provide a column alias for the expression in order to refer to it in the order_by_clause. You cannot also specify the for_update_clause with the set operators. You cannot specify the order_by_clause in the subquery of these operators. You cannot use these operators in SELECT statements containing TABLE collection expressions.
upvoted 1 times
...
Shrimathi
1 year, 5 months ago
CE is the answer None of the set operator can be used with CLOB -False The set operator which is excluding duplicate rows (intersect,minus,union) will fail to compare the LOB data type. Union all operator doesn't throw any error if it contains LOB datatype
upvoted 2 times
johannfurma
1 year ago
The docu states: "The set operators are not valid on columns of type BLOB, CLOB, BFILE, VARRAY, or nested table."
upvoted 2 times
...
...
gyanji
2 years, 1 month ago
https://docs.oracle.com/database/121/SQLRF/queries004.htm#SQLRF52341
upvoted 1 times
...
holdfaststrongly
2 years, 3 months ago
BCE per link.
upvoted 2 times
...
Averagenoob
2 years, 4 months ago
BCE it is for sure
upvoted 2 times
...
Artur1991
2 years, 4 months ago
Checking provided link, valid are BCE
upvoted 1 times
nhquoc1990
2 years, 4 months ago
Union All can use with BLOB. checked
upvoted 5 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