Filters
Question type

Study Flashcards

When does a COMMIT command implicitly occur?


A) When the user executes COMMIT;.
B) When the user issues a DDL command such as CREATE or ALTER TABLE.
C) When the user executes ROLLBACK;.
D) When the computer loses power unexpectedly.

E) A) and C)
F) B) and C)

Correct Answer

verifed

verified

A lock arising from a SELECT...FOR UPDATE command will be released when ____.


A) a COMMIT command is executed
B) a ROLLBACK command is executed
C) an implicit commit occurs
D) all of the above

E) All of the above
F) B) and D)

Correct Answer

verifed

verified

Contents of the PROMOTION table Contents of the PROMOTION table    -Based on the contents of the PROMOTION table, which of the following commands will delete only the row for the Free Bookmark from the table? A)  DELETE FROM promotion; B)  DELETE gift FROM promotion; C)  DELETE gift FROM promotion WHERE gift = 'BOOKMARKER'; D)  DELETE FROM promotion WHERE gift = 'BOOKMARKER'; -Based on the contents of the PROMOTION table, which of the following commands will delete only the row for the Free Bookmark from the table?


A) DELETE FROM promotion;
B) DELETE gift FROM promotion;
C) DELETE gift FROM promotion WHERE gift = 'BOOKMARKER';
D) DELETE FROM promotion WHERE gift = 'BOOKMARKER';

E) All of the above
F) A) and B)

Correct Answer

verifed

verified

Which of the following is not a valid SQL command?


A) UPDATE acctmanager SET amedate = SYSDATE WHERE amid = 'J500';
B) UPDATE acctmanager SET amname = UPPER(amname) ;
C) UPDATE acctmanager SET amname = UPPER(amname) WHERE amid = 'J500';
D) UPDATE acctmanager WHERE amid = 'J500';

E) None of the above
F) A) and C)

Correct Answer

verifed

verified

Which of the following types of locks permits other users access to unlocked portions of a table?


A) shared lock
B) table lock
C) exclusive lock
D) partition lock

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

When the column names are listed in the INSERT INTO clause of the INSERT command, the order of the names must exactly match the order of the data values in the  UPDATE ‾\underline { \text { UPDATE } } clause. _________________________

A) True
B) False

Correct Answer

verifed

verified

____________________ are automatically released when the user exits the system or executes a COMMIT or ROLLBACK command.

Correct Answer

verifed

verified

The data values being added to a table with the INSERT command must be listed in the ____________________ clause.

Correct Answer

verifed

verified

______________________________ commands are used to modify data.

Correct Answer

verifed

verified

DML
Data m...

View Answer

After a COMMIT command is executed, the  ROLLBACK ‾\underline { \text { ROLLBACK } } command will have no affect on the changed data. _________________________

A) True
B) False

Correct Answer

verifed

verified

The  COMMIT ‾\underline { \text { COMMIT } } command is used to add new rows to a table. _________________________

A) True
B) False

Correct Answer

verifed

verified

The row(s) to be updated by the UPDATE command is specified by the ____ clause.


A) UPDATE
B) SET
C) WHERE
D) COL

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

A lock is automatically released when the user issues a transaction control statement such as COMMIT or  ROLLBACK ‾\underline { \text { ROLLBACK } } . _________________________

A) True
B) False

Correct Answer

verifed

verified

If more than one data value is being added to a table, the values must be separated by  parentheses. ‾\underline {\text { parentheses. } } _________________________

A) True
B) False

Correct Answer

verifed

verified

 Transaction control ‾\underline {\text { Transaction control }} statements are used to either save modified data or to undo changes before they are committed. _________________________

A) True
B) False

Correct Answer

verifed

verified

When the INSERT command is being used to enter data into a non-numeric column, the data must be enclosed in ____.


A) parentheses
B) double quotation marks
C) single quotation marks
D) upper-case letters

E) B) and D)
F) A) and C)

Correct Answer

verifed

verified

Use the ____ keyword to enter the computer's date as a data value in the INSERT command.


A) SYSTEMDATE
B) DATE
C) SYSDATE
D) COMPDATE

E) A) and C)
F) B) and C)

Correct Answer

verifed

verified

Contents of the PROMOTION table Contents of the PROMOTION table    -Based on the contents of the PROMOTION table, which of the following will correctly change the value assigned to the MAXRETAIL column for Free Shipping to 75.00? A)  INSERT INTO promotion (maxretail)  VALUES (75)  WHERE gift = 'FREE SHIPPING'; B)  UPDATE promotion (maxretail)  SET = 75 WHERE gift = 'FREE SHIPPING'; C)  UPDATE promotion SET maxretail = 75 WHERE gift = 'FREE SHIPPING'; D)  none of the above -Based on the contents of the PROMOTION table, which of the following will correctly change the value assigned to the MAXRETAIL column for Free Shipping to 75.00?


A) INSERT INTO promotion (maxretail)
VALUES (75)
WHERE gift = 'FREE SHIPPING';
B) UPDATE promotion (maxretail)
SET = 75
WHERE gift = 'FREE SHIPPING';
C) UPDATE promotion
SET maxretail = 75
WHERE gift = 'FREE SHIPPING';
D) none of the above

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

If more than one column is listed in the INSERT INTO clause, the column names must be separated by ____.


A) commas
B) single quotation marks
C) double quotation marks
D) parentheses

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

When does a COMMIT command explicitly occur?


A) When the user executes COMMIT;.
B) When the user issues a DDL command such as CREATE or ALTER TABLE.
C) When the user executes ROLLBACK;.
D) When the user exists the system.

E) B) and D)
F) None of the above

Correct Answer

verifed

verified

Showing 61 - 80 of 132

Related Exams

Show Answer