Oracle Database Fundamentals - DDL, Constraints, and Memory Structures
Tests knowledge of Oracle database commands, constraints, data types, and memory structures including PGA and SGA
Questions
You can use a column alias in order by clause
- True
- False
You can sort query results by more than one column. The sort limit is the number of columns in the given table.
- True
- False
SGA stands for
- SYSTEM GLOBAL AREA
- SYNCHRONIZED GLOBAL AREA
- SORT GLOBAL AREA
- SCALABLE GLOBAL AREA
DATAFILE is a physical component of the DATABASE
- True
- False
PGA stands for
- PRIMARY GLOBAL AREA
- PROGRAM GLOBAL AREA
- PRIME GLOBAL AREA
- PEAK GLOBAL AREA
Identify VALID data types. Choose all that apply.
- ROWID
- BFILE
- SHORT RAW
- VARCHAR2(size)
- LONG RAW
- POINTER
For CREATING a TABLE object, what are the pre-requisites? Choose all that apply
- A SCHEMA with CREATE SESSION system privilege
- CREATE SYNONYM system privilege
- A storage area with required access
- CREATE TABLE system privilege
- CREATE INDEX system privilege
Identify the prefix of data dictionary views. Choose all that apply.
- ALL_
- USER_
- ORACLE_
- DBA_
- SCHEMA_
Specify the actions, one can perform with ALTER TABLE statement. Choose all that apply.
- UPDATE the records in the table
- MODIFY the data type of the column
- DROP the table column
- DEFINE a default value for the column
- DELETE the records in the table
- ADD a new column to the table
What is the key difference between TRUNCATE TABLE and DELETE FROM TABLE commands?
- TRUNCATE is DDL and DELETE is DML
- TRUNCATE is DML and DELETE is DDL
- TRUNCATE is DCL and DELETE is DML
- TRUNCATE is DML and DELETE is DCL
What is true about PRIMARY KEY? Choose all that apply
- Can be defined on a single column or multiple columns in the table.
- Can be defined only on a single column in the table.
- A UNIQUE index is automatically created once PRIMARY KEY is defined on the table.
- A NON-UNIQUE index is automatically created once PRIMARY KEY is defined on the table.
- NOT NULL constraint is implicitly enforced on the columns which are part of the PRIMARY KEY
- NULL constraint is implicitly enforced on the columns which are part of the PRIMARY KEY
What is true about UNIQUE KEY? Choose all that apply
- Can be defined only on a single column in the table.
- Can be defined on a single column or multiple columns in the table.
- A UNIQUE index is automatically created once UNIQUE KEY is defined on the table.
- A NON-UNIQUE index is automatically created once UNIQUE KEY is defined on the table.
- NULL values are NOT acceptable on the columns, which are part of UNIQUE KEY
- NULL values are acceptable, which are part of UNIQUE KEY
What is true about NOT NULL constraint? Choose all that apply
- Must be defined as a part of column definition
- It's NOT necessary to define it as a part of column definition
- Can be applied to the column which may hold UNKNOWN data
- Can NOT be applied to the column which may hold UNKNOWN data
What is true about CHECK constraint? Choose all that apply
- Must evaluate to BOOLEAN expression
- Not necessarily evaluates to BOOLEAN expression
- Requires that a column (or combination of columns) satisfy a condition for every row in the table excluding nulls.
- Columns which, are part of CHECK constraint, may accept NULL values
- Columns which, are part of CHECK constraint, can NOT accept NULL values
What is true about FOREIGN KEY constraint? Choose all that apply
- Defines relations between the tables
- The table that includes the foreign key is called the dependent or child table
- The table that includes the foreign key is called the parent table
- The table that is referenced by the foreign key is called the parent table
- The table that is referenced by the foreign key is called the dependent or child table
NOT NULL constraint can be added using MODIFY clause of ALTER TABLE statement
- True
- False
Using ALTER TABLE command one can only ADD or DROP a constraint, but NOT MODIFY it's structure.
- True
- False
Using INSERT command only ONE record can be inserted during each execution.
- True
- False