Tag: databases

Questions Related to databases

  1. Would skip the first 7, and then get you the next ten highest.

  2. not a valid mysql query

  3. Would skip the first 10, and then get you the next 7 highest.

  4. None of the above


Correct Option: A

Which Oracle access method is the fastest way for Oracle to retrieve a single row?

  1. Primary key access

  2. Access via unique index

  3. Table access by ROWID

  4. Full table scan


Correct Option: C

Which of the following can be a valid column name?

  1. Column

  2. 1966_Invoices

  3. Catch_#22

  4. #Invoices


Correct Option: C

When a user creates an object without a TABLESPACE clause, where will Oracle store the segment?

  1. System tablespace

  2. Users tablespace

  3. Default tablespace for the user

  4. Oracle will give an error


Correct Option: C

Which character is used to continue a statement in SQL*Plus?

  1. *

  2. /

  3. -

  4. @


Correct Option: C

What is the best way for a deadlock to be resolved?

  1. All statements are removed and have to be resubmitted

  2. The Oracle server rolls back the statement that detected the deadlock

  3. The administrator has to kill the session

  4. Deadlocks can not be resolved


Correct Option: B

When an executable SQL statement executes, a transaction begins. Which of the following events can NOT cause a transaction to end?

  1. The user disconnects from Oracle

  2. A COMMIT or a ROLLBACK statement is used in conjunction with a SAVEPOINT clause

  3. A user process is terminated abnormally

  4. A DDL statement such as DROP, GRANT, RENAME


Correct Option: B