Home
111.
Is the main purpose of an index to stop duplicate values in a table?

No. The main purpose of an index is to enhance data retrieval speed, although a unique index stops duplicate values in a table.

112.
What does cardinality refer to? What is considered a column of high-cardinality?

Cardinality refers to the uniqueness of the data within a column. The SSN column is an example of such a column.

113.
Would the use of a unique index on a small table be of any benefit?

The index might not be of any use for performance issues, but the unique index would keep referential integrity intact.

114.
When a cursor is closed, can you reuse the name?

This is implementation specific. In some implementations, the closing of the cursor enables you to reuse the name and even free the memory, where as for other implementations you must use the DEALLOCATE statement before you can reuse the name.

115.
Are triggers executed before or after an INSERT, DELETE, or UPDATE statement?

Triggers can be executed before or after an INSERT, DELETE, or UPDATE statement. Many different types of triggers can be created.

116.
Why do Oracle and MySQL not support the DEALLOCATEsyntax for cursors?

They do not support the statement because they automatically deallocate the cursor resources when the cursor is closed.

117.
Why is a cursor not considered a set-based operation?

Cursors are not considered set-based operations because they operate on only one row at a time by fetching a row from memory and performing some action with it

118.
Can a character string date value be compared to a date value defined as a valid DATETIME data type?

A DATETIME data type cannot be accurately compared to a date value defined as a character string. The character string must first be converted to the DATETIME data type.

119.
When creating a table, the owner is automatically granted the appropriate privileges on that table. Is this true when creating a view?

Yes. The owner of a view is automatically granted the appropriate privileges on the view.

120.
Can you delete a row of data from a view that you created from multiple tables?

No. You can only use the DELETE, INSERT, and UPDATEcommands on views you create from a single table.