Filters
Question type

Study Flashcards

The WHERE clause of the DELETE command is used to identify the rows to be deleted from the table.​

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

Correct Answer

verifed

verified

What will happen if you try to use the INSERT command to insert a NULL value into a column that has been assigned a PRIMARY KEY constraint? ​


A) ​The command will execute because a PRIMARY KEY value can be NULL.
B) ​An error message is returned and the row is not added to the table.
C) ​The command will execute because only a UNIQUE constraint forbids NULL values.
D) ​An error message is returned but the unaffected portion of the row is added to the table.

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

Correct Answer

verifed

verified

Which of the following keywords is omitted from the INSERT command if the data to be added to a table is already contained in another table?​


A) ​INSERT
B) ​INTO
C) ​VALUES
D) ​none of the above

Correct Answer

verifed

verified

What is the difference between a standard SELECT statement and a SELECT...FOR UPDATE statement?​

Correct Answer

verifed

verified

The purpose of the standard SELECT state...

View Answer

If data is only being added to some of the columns in a table,the names of the columns must be listed in the VALUES clause.​

Correct Answer

verifed

verified

A(n)exclusive lock is automatically obtained when the user executes the SELECT...FOR UPDATE command._________________________​

Correct Answer

verifed

verified

Which of the following commands is used to add rows to a table?​


A) ​ADD
B) ​UPDATE
C) ​INSERT
D) ​ENTER

Correct Answer

verifed

verified

Which command is used to prevent other users from making changes to a table?


A) ​COMMIT
B) ​COMMIT TABLE
C) ​BLOCK
D) ​LOCK TABLE

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

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

Correct Answer

verifed

verified

The LOCK TABLE command can be used to prevent other users from making changes to a table.​

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

Correct Answer

verifed

verified

A substitution variable can be identified by the ____________________ symbol that precedes the variable name.​

Correct Answer

verifed

verified

A table can be locked in SHARE MODE or EXCLUSIVE MODE._________________________​

Correct Answer

verifed

verified

Showing 121 - 136 of 136

Related Exams

Show Answer