exam questions

Exam 1z0-082 All Questions

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

Exam 1z0-082 topic 1 question 100 discussion

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

Examine the description of the PRODUCT_STATUS table:



The STATUS column contains the values 'IN STOCK' or 'OUT OF STOCK' for each row.

Which two queries will execute successfully? (Choose two.)

  • A.
  • B.
  • C.
  • D.
  • E.
  • F.
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

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
canijho
Highly Voted 1 year, 4 months ago
A - Bad alias, ORA-00923: FROM keyword not found where expected B - Bad syntax, ORA-01756: quoted string not properly terminated C - Bad alias, ORA-00923: FROM keyword not found where expected D --OK E - Bad syntax, ORA-00904: "Q": invalid identifier F --OK
upvoted 6 times
...
it6567306
Most Recent 2 months, 1 week ago
Two options, A and D, are successful. The table definition creation SQL and data registration SQL required to execute the SQL listed in the question text options are shown below.
upvoted 1 times
it6567306
2 months, 1 week ago
CREATE TABLE product_status ( prod_id NUMBER(2) NOT NULL, status VARCHAR2(15) NOT NULL ); INSERT INTO product_status (prod_id, status) VALUES (1, 'IN STOCK'); INSERT INTO product_status (prod_id, status) VALUES (2, 'OUT OF STOCK'); INSERT INTO product_status (prod_id, status) VALUES (3, 'IN STOCK'); INSERT INTO product_status (prod_id, status) VALUES (4, 'OUT OF STOCK'); --Oracle Live SQL
upvoted 1 times
it6567306
2 months, 1 week ago
A. select prod_id "CURRENT AVAILABILITY" || q'('s not available)' from product_status where status = 'OUT OF STOCK'; B. select prod_id || q'('s not available" from product_status where status = OUT OF STOCK'; C. select prod_id || q'('s not available)' 'CURRENT AVAILABILITY' FROM product_status where status = 'OUT OF STOCK'; D. select prod_id || q'('s not available)' from product_status where status = 'OUT OF STOCK'; E. select prod_id || q"'s not available" from product_status where status = 'OUT OF STOCK'; F. select prod_id || q'('s not available)' "CURRENT AVAILABILITY" FROM product_status where status = 'OUT OF STOCK';
upvoted 1 times
it6567306
2 months, 1 week ago
A - ORA-00923: FROM keyword not found where expecte B - ORA-01756: quoted string not properly terminated C - ORA-00923: FROM keyword not found where expected D--OK E - ORA-00904: "Q": invalid identifier F--OK
upvoted 1 times
...
...
...
...
auwia
1 year ago
Selected Answer: DF
D and F are correct.
upvoted 2 times
...
BeomK
1 year, 2 months ago
D,F is correct
upvoted 4 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