exam questions

Exam 1z0-082 All Questions

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

Exam 1z0-082 topic 1 question 67 discussion

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

Which two are true about a SQL statement using SET operators such as UNION? (Choose two.)

  • A. The data type group of each column returned by the second query must match the data type of the corresponding column returned by the first query.
  • B. The number, but not names, of columns must be identical for all SELECT statements in the query.
  • C. The data type of each column returned by the second query must exactly match the data type of the corresponding column returned by the first query.
  • D. The names and number of columns must be identical for all SELECT statements in the query.
  • E. The data type of each column returned by the second query must be implicitly convertible to the data type of the corresponding column returned by the first query.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
danito
Highly Voted 4 years, 1 month ago
A B are the correct options
upvoted 13 times
elbelgounetos
3 years, 4 months ago
reference https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/The-UNION-ALL-INTERSECT-MINUS-Operators.html#GUID-B64FE747-586E-4513-945F-80CB197125EE
upvoted 1 times
...
Ekos
3 years, 7 months ago
i agree
upvoted 1 times
...
...
Rivaldo11
Highly Voted 3 years, 12 months ago
I would also say A and B - "...Tables must have the same number of columns presented in the same order. In addition, the data type of the corresponding column must be in the same data type group such as number or character..."
upvoted 6 times
...
Shinju_dy
Most Recent 3 months, 4 weeks ago
In queries using set operators, Oracle does not perform implicit conversion across data type groups. Therefore, if the corresponding expressions of component queries resolve to both character data and numeric data, Oracle returns an error. 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
...
Hell3n
10 months, 1 week ago
why not E?
upvoted 1 times
it6567306
2 months, 1 week ago
SELECT 1 FROM DUAL UNION SELECT '0' FROM DUAL; --ORA-01790: expression must be of same datatype as corresponding expression
upvoted 1 times
...
...
Oracle2020
10 months, 2 weeks ago
I think B, C
upvoted 1 times
Oracle2020
3 months, 2 weeks ago
sorry the answer is AB. because The select list are identical in the number of expressions in the list and their respective data type groups.
upvoted 1 times
...
...
mamadu
1 year ago
I was confused with C and A since A. mentions "data type group". i can confirm that a CHAR can be matched with VARCHAR2. ans is A B
upvoted 2 times
...
auwia
1 year ago
Selected Answer: AB
A and B are correct
upvoted 2 times
...
fthusa
1 year, 1 month ago
AB correct
upvoted 1 times
...
LeandroHPN
2 years ago
Selected Answer: AB
A , B is correct.
upvoted 1 times
...
ryuah
2 years, 6 months ago
A,B is correct
upvoted 1 times
...
avanand
3 years, 10 months ago
A and B are correct. For SET operator, Data type group should be matched. For example, a NUMBER column in first query can be UNIONed with INTERGER column in second query.
upvoted 3 times
...
you1234
4 years ago
C & E is correct answer
upvoted 1 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