exam questions

Exam 1z0-071 All Questions

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

Exam 1z0-071 topic 1 question 185 discussion

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

Examine the description PRODUCTS table:



Examine the description of the NEW_PRODUCTS table:



Which two queries execute successfully?

  • A. SELECT prod_id FROM products -

    UNION ALL -
    SELECT prod_id, prod_name FROM new_products;
  • B. SELECT prod_id, exp_date FROM products

    UNION ALL -
    SELECT prod_id, NULL FROM new_products;
  • C. SELECT * FROM products -

    MINUS -
    SELECT prod_id, FROM new_products;
  • D. SELECT prod_id, prod_name FROM products

    INTERSECT -
    SELECT 100, prod_name FROM new_products;
  • E. SELECT * FROM products -

    UNION -
    SELECT * FROM new_products;
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

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
SantiBZ_07032022_1744
Highly Voted 1 year, 5 months ago
B,E create table products (prod_id char(2), prod_name char(4), exp_date timestamp(6)); create table new_products (prod_id char(4), prod_name varchar2(10), exp_date DATE); /*A NOOK 01789. 00000 - "query block has incorrect number of result columns"*/ SELECT prod_id FROM products UNION ALL SELECT prod_id, prod_name FROM new_products; /*B OK.*/ SELECT prod_id, exp_date FROM products UNION ALL SELECT prod_id, NULL FROM new_products; /*C NOOK 01789. 00000 - "query block has incorrect number of result columns"*/ SELECT * FROM products MINUS SELECT prod_id FROM new_products; /*D NOOK 01790. 00000 - "expression must have same datatype as corresponding expression"*/ SELECT prod_id, prod_name FROM products INTERSECT SELECT 100, prod_name FROM new_products; /*E OK*/ SELECT * FROM products UNION SELECT * FROM new_products;
upvoted 5 times
...
yaya32
Most Recent 6 months, 2 weeks ago
Selected Answer: BE
BE correct
upvoted 1 times
...
lucemqy
8 months, 3 weeks ago
Selected Answer: BE
BE is correct D is not correct since the data types does not match
upvoted 1 times
...
Ajinkya_Tambe
9 months ago
B, E is correct; but D also executes successfully!!
upvoted 1 times
...
ESZ
10 months, 1 week ago
Selected Answer: BE
BE correct. Please update these answers
upvoted 2 times
...
fasolazgrochem
11 months ago
Selected Answer: BE
BE tested
upvoted 2 times
...
Shrimathi
1 year ago
BE correct
upvoted 2 times
...
WingL
1 year ago
Selected Answer: BE
BE Correct. Tested Thanks Santi.
upvoted 3 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