Filters
Question type

Study Flashcards

The most useful feature of PL/SQL blocks is that they let a designer create code that can be named, stored, and executed by the DBMS.

A) True
B) False

Correct Answer

verifed

verified

How can a table be deleted from the database? Provide an example.

Correct Answer

verifed

verified

A table can be deleted from the database using the DROP TABLE command.For example, a user can delete the PART table with the following command: DROP TABLE PART; The user can drop a table only if it is not the "one" side of any relationship.If the user tries to drop a table otherwise, the RDBMS will generate an error message indicating that a foreign key integrity violation has occurred.

All changes in a table structure are made using the _____ TABLE command, followed by a keyword that produces the specific changes a user wants to make.


A) ALTER
B) COMMIT
C) UPDATE
D) ROLLBACK

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

Correct Answer

verifed

verified

The SQL data type DATE stores date in the _____ date format.

Correct Answer

verifed

verified

Which statement describes a feature of Oracle sequences?


A) Oracle sequences are tied to columns and tables.
B) Oracle sequences generate a character string that can be assigned to tables.
C) An Oracle sequence uses the identity column property to automatically number rows.
D) Dropping a sequence does not delete values assigned to table attributes; it deletes only the sequence object from the database.

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

Correct Answer

verifed

verified

Which command would be used to delete the table row where the P_CODE is 'BRT-345'?


A) DELETE FROM      PRODUCT
WHERE                   P_CODE = 'BRT-345';
B) REMOVE FROM PRODUCT
WHERE P_CODE = 'BRT-345';
C) ERASE FROM        PRODUCT
WHERE                   P_CODE = 'BRT-345';
D) ROLLBACK FROM   PRODUCT
WHERE                      P_CODE = 'BRT-345';

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

Correct Answer

verifed

verified

MySQL allows multiple triggering conditions per trigger.

A) True
B) False

Correct Answer

verifed

verified

_____ is the term used to describe an environment in which the SQL statement is not known in advance and is generated at run time.

Correct Answer

verifed

verified

Words used by a system that cannot be used for any other purpose are called _____ words. For example, in Oracle SQL, the word INITIAL cannot be used to name tables or columns.


A) reserved
B) unique
C) null
D) character

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

Correct Answer

verifed

verified

A(n) _____-length character data type, like VARCHAR, is typically specified with a maximum length.

Correct Answer

verifed

verified

A view is a virtual table based on a SELECT query.

A) True
B) False

Correct Answer

verifed

verified

_____ words are words used by SQL to perform specific functions.

Correct Answer

verifed

verified

Reserved

In Oracle, you can use the SQL*Plus command SHOW ERRORS to help you diagnose errors found in PL/SQL blocks.

A) True
B) False

Correct Answer

verifed

verified

Summarize the hierarchy of steps involved in creating and running an executable program with embedded SQL statements.

Correct Answer

verifed

verified

While the steps required to create and e...

View Answer

In Oracle, _____ retrieves the current value of a sequence.


A) NEXTVAL
B) CURRVAL
C) VARCHAR
D) VARCHAR2

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

Correct Answer

verifed

verified

A(n) _____ view is a view that can be used to update attributes in the base table(s) that are used in the view.

Correct Answer

verifed

verified

updatable

What is a schema? How many schemas can be used in one database?

Correct Answer

verifed

verified

In the SQL environment, a schema is a lo...

View Answer

The _____ command permanently saves all changes-such as rows added, attributes modified, and rows deleted-made to any table in the database.


A) COMMIT
B) SELECT
C) ROLLBACK
D) UPDATE

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

Correct Answer

verifed

verified

The _____ specification creates an individualindex ona respective attribute; use it to avoid having duplicated values in a column.


A) UNIQUE
B) NOT NULL
C) UPDATE
D) VARCHAR

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

Correct Answer

verifed

verified

When a user issues the DELETE FROM tablename command without specifying a WHERE condition, _____.


A) no rows will be deleted
B) the first row will be deleted
C) the last row will be deleted
D) all rows will be deleted

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

Correct Answer

verifed

verified

Showing 1 - 20 of 75

Related Exams

Show Answer