Oracle
1Z0-047 · Question #149
Evaluate the following statements: CREATE TABLE digits (id NUMBER(2), description VARCHAR2(15)); INSERT INTO digits VALUES (1,'ONE); UPDATE digits SET description ='TWO'WHERE id=1; INSERT INTO…
The correct answer is C. It would display the value TWO twice. See the full explanation below for the reasoning.
Question
Evaluate the following statements:
CREATE TABLE digits (id NUMBER(2), description VARCHAR2(15)); INSERT INTO digits VALUES (1,'ONE); UPDATE digits SET description ='TWO'WHERE id=1; INSERT INTO digits VALUES (2 .'TWO'); COMMIT; DELETE FROM digits; SELECT description FROM digits VERSIONS BETWEEN TIMESTAMP MINVALUE AND MAXVALUE; What would be the outcome of the above query?
Options
- AIt would not display any values.
- BIt would display the value TWO once.
- CIt would display the value TWO twice.
- DIt would display the values ONE, TWO, and TWO.
How the community answered
(50 responses)- A6% (3)
- B2% (1)
- C78% (39)
- D14% (7)
Community Discussion
No community discussion yet for this question.