Oracle Database SQL Quiz

Test your knowledge of Oracle database concepts including datatypes, SQL joins, indexes, tablespaces, and database operations

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is syntax to unlock the table statastics?

  1. exec DBMS_STATS.UNLOCK_SCHEMA_STATS('TABLE_NAME','OWNER');
  2. exec DBMS_STATS.UNLOCK_SCHEMA_STATS('OWNER','TABLE_NAME');
  3. exec DBMS_STATS.UNLOCK_DB_STATS('DB_NAME','OWNER','TABLE_NAME');
  4. exec DBMS_STATS.UNLOCK_TABLE_STATS('TABLE_NAME','OWNER');
  5. exec DBMS_STATS.UNLOCK_TABLE_STATS('OWNER','TABLE_NAME');
Question 2 True/False

A Tablespace can hold objects from different Schemes.

  1. True
  2. False
Question 3 Multiple Choice (Single Answer)

You can use ____________ in a SQL expression to override operator precedence

  1. colons
  2. parentheses
  3. commas
  4. semi-colons
Question 4 True/False

A Tablespace can have multiple datafiles.

  1. True
  2. False
Question 5 True/False

A Datafile can be part of multiple tablespaces.

  1. True
  2. False
Question 6 Multiple Choice (Multiple Answers)

Which of the following can be partitioned (choose all that apply):

  1. Indexes
  2. Hints
  3. Tables
  4. Bitmaps
Question 7 Multiple Choice (Single Answer)

What type of joins extends the result of a simple join

  1. left join
  2. right join
  3. outer join
  4. equil join
  5. simple join
Question 8 Multiple Choice (Single Answer)

To write a query that performs an outer join of tables A and B and returns all rows from B, you need a:

  1. left outer join
  2. inner join
  3. equil join
  4. right outer join
Question 9 Multiple Choice (Multiple Answers)

You may use the CREATE INDEX statement to create an index on (choose all that apply):

  1. This is hard to determine
  2. One or more scalar typed object attributes of a cluster
  3. One or more columns of a table
  4. A nested table storage table
Question 10 Multiple Choice (Single Answer)

An inner join is always a:

  1. outer join
  2. equil join
  3. simple join
  4. right join
  5. left join
Question 11 Multiple Choice (Multiple Answers)

When will a Cartesian product be returned

  1. when two tables in a join query have only a single join condition
  2. when two tables in a join query have too many join conditions
  3. This is hard to determine.
  4. when two tables in a join query have no join condition
Question 12 True/False

The UNION ALL operator does not eliminate duplicate selected rows from the result set

  1. True
  2. False
Question 13 True/False

The ALTER SEQUENCE statement can affect only the future sequence numbers

  1. True
  2. False
Question 14 True/False

If you use the CREATE DATABASE statement on an existing database, all data in the datafiles will be lost

  1. True
  2. False
Question 15 Multiple Choice (Single Answer)

which datatype store pointer to binary file on disk

  1. BLOB
  2. CLOB
  3. BFILE
  4. NCLOB
Question 16 Multiple Choice (Single Answer)

For Which datatype Maximum size is 4GB

  1. CLOB
  2. BLOB
  3. NCLOB
  4. ALL
Question 17 Multiple Choice (Single Answer)

A) Long raw - Variable length binary strings B) LONG - Character data of variable length

  1. A is correct
  2. B is correct
  3. A & B Both correct
  4. A & B both Incorrect
Question 18 Multiple Choice (Single Answer)

32-bit floating point number datatype is?

  1. BINARY_FLOAT
  2. BINARY_DOUBLE
  3. ROWID
  4. NCHAR
Question 19 Multiple Choice (Single Answer)

Which datatype can store large and unstructured data such as text, image, video?

  1. BLOB
  2. CLOB
  3. NCLOB
  4. BFILE
  5. ALL
Question 20 Multiple Choice (Single Answer)

Find the odd one out?

  1. MicroStrategies
  2. Actuate
  3. Siebel Analytics
  4. Cognos DecisionStream