Oracle Database SQL Quiz
Test your knowledge of Oracle database concepts including datatypes, SQL joins, indexes, tablespaces, and database operations
Questions
What is syntax to unlock the table statastics?
- exec DBMS_STATS.UNLOCK_SCHEMA_STATS('TABLE_NAME','OWNER');
- exec DBMS_STATS.UNLOCK_SCHEMA_STATS('OWNER','TABLE_NAME');
- exec DBMS_STATS.UNLOCK_DB_STATS('DB_NAME','OWNER','TABLE_NAME');
- exec DBMS_STATS.UNLOCK_TABLE_STATS('TABLE_NAME','OWNER');
- exec DBMS_STATS.UNLOCK_TABLE_STATS('OWNER','TABLE_NAME');
A Tablespace can hold objects from different Schemes.
- True
- False
You can use ____________ in a SQL expression to override operator precedence
- colons
- parentheses
- commas
- semi-colons
A Tablespace can have multiple datafiles.
- True
- False
A Datafile can be part of multiple tablespaces.
- True
- False
Which of the following can be partitioned (choose all that apply):
- Indexes
- Hints
- Tables
- Bitmaps
What type of joins extends the result of a simple join
- left join
- right join
- outer join
- equil join
- simple join
To write a query that performs an outer join of tables A and B and returns all rows from B, you need a:
- left outer join
- inner join
- equil join
- right outer join
You may use the CREATE INDEX statement to create an index on (choose all that apply):
- This is hard to determine
- One or more scalar typed object attributes of a cluster
- One or more columns of a table
- A nested table storage table
An inner join is always a:
- outer join
- equil join
- simple join
- right join
- left join
When will a Cartesian product be returned
- when two tables in a join query have only a single join condition
- when two tables in a join query have too many join conditions
- This is hard to determine.
- when two tables in a join query have no join condition
The UNION ALL operator does not eliminate duplicate selected rows from the result set
- True
- False
The ALTER SEQUENCE statement can affect only the future sequence numbers
- True
- False
If you use the CREATE DATABASE statement on an existing database, all data in the datafiles will be lost
- True
- False
which datatype store pointer to binary file on disk
- BLOB
- CLOB
- BFILE
- NCLOB
For Which datatype Maximum size is 4GB
- CLOB
- BLOB
- NCLOB
- ALL
A) Long raw - Variable length binary strings B) LONG - Character data of variable length
- A is correct
- B is correct
- A & B Both correct
- A & B both Incorrect
32-bit floating point number datatype is?
- BINARY_FLOAT
- BINARY_DOUBLE
- ROWID
- NCHAR
Which datatype can store large and unstructured data such as text, image, video?
- BLOB
- CLOB
- NCLOB
- BFILE
- ALL
Find the odd one out?
- MicroStrategies
- Actuate
- Siebel Analytics
- Cognos DecisionStream