Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam C2090-616 All Questions

View all questions & answers for the C2090-616 exam

Exam C2090-616 topic 1 question 31 discussion

Actual exam question from IBM's C2090-616
Question #: 31
Topic #: 1
[All C2090-616 Questions]

Given the following statement:
DECLARE GLOBAL TEMPORARY TABLE TEMP1 (
ID INTEGER NOT NULL,
ITEM CHAR(30),
AMOUNT DECIMAL (10,2)
ON COMMIT DELETE ROWS NOT LOGGED;
Which of the following statements are TRUE? (Choose two.)

  • A. Temp1 table is accessed under schema SESSION
  • B. Temp1 definition is available for use by other sessions
  • C. At the end of a transaction, data is deleted automatically
  • D. Definition of the table Temp1 is stored in database catalog
  • E. Rows inserted by one session are visible in other sessions
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
ananthanarayanante
4 years, 5 months ago
I agree the correct answer is A & C
upvoted 3 times
...
db2tester
5 years, 1 month ago
You have also the statement CREATE GLOBAL TEMPORARY, which is different of "DECLARE GLOBAL TEMPORARY" statement. The CREATE GLOBAL TEMPORARY TABLE statement creates a description of a temporary table at the current server. But, each session that selects from a created temporary table retrieves only rows that the same session has inserted. When the session terminates, the rows of the table associated with the session are deleted. See reference : https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.1.0/com.ibm.db2.luw.sql.ref.doc/doc/r0053719.html
upvoted 3 times
...
db2tester
5 years, 1 month ago
The correct answer are : A. Temp1 table is accessed under schema SESSION C. At the end of a transaction, data is deleted automatically See reference : https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.1.0/com.ibm.db2.luw.sql.ref.doc/doc/r0003272.html he DECLARE GLOBAL TEMPORARY TABLE statement defines a temporary table for the current session. The declared temporary table description does not appear in the system catalog. It is not persistent and cannot be shared with other sessions. Each session that defines a declared global temporary table of the same name has its own unique description of the temporary table. When the session terminates, the rows of the table are deleted, and the description of the temporary table is dropped.
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 ...