Oracle Database and SQL Fundamentals
Test your knowledge of Oracle database concepts including table structure, indexes, constraints, views, SQL statements, and PL/SQL programming.
Questions
What is a CPK
- PK
- CPK
- FK
- UK
What is a U K
- FK
- CPK
- UK
- PK
You are developing a PL/SQL block designed for bulk data operations. When attemping to store table data for multiple rows in a PL/SQL variable, which one of the following choices identifies the mechanism best suited for this task (choose one)?
- Cursor
- Varchar2
- PL/SQL table
- Table of records
- Record
What is the maximum number of sub programs allowed inside a package
- 12
- 256
- 1024
- Unlimited
What is the maximum parsed size of the PL/SQL block
- 64K
- 128K
- 256K
- Unlimited
What command will you use to encrypt a PL/SQL block
- COMPILE DEBUG
- WRAP
- ENCRYPT
- COMPILE
how many distinct triggers can be created on the table
- 12
- 4
- 2
- Unlimited
Maximum number of coulmns allowed in a table
- 256
- 128
- 512
- 1000
Maximum number of columns allowed inside an index
- 12
- 256
- 128
- 32
Which of the following is DDL Statement
- Truncate
- Merge
- Revoke
- Grant
Select the incorrect Oracle Select Statement
- select distinct * from T1
- select C1 from T1 order by C2
- select distinct C1 from T1
- select 12*14 from T1
- select C1 AS 'column1",C1 AS 'column2',C2 AS 'column1' from T1.
Which of the following is a DML Statement
- Truncate
- Merge
- Revoke
- Grant
We can sort by a column without present in the SELECT List
- True
- False
Select Incorrect Oracle Group Function
- floor
- sum
- variance
- stddev
which of the following views identify the status of the view in the database
- USER_VIEWS
- USER_TAB_COLUMNS
- USER_TABLES
- USER_OBJECTS
ROWID is a column datatype
- True
- False
we can select while LOCk is on a rows
- True
- False
reference to sysdate,nextval,currval is allowed on constraint definition
- True
- False
Which index is automatically created if you enable a UNIQUE KEY or PRIMARY KEY constraint
- cluster index
- simple index
- unique index
- functional index
We can insert a new column in between two existing columns without altering the table.
- True
- False