Database Fundamentals: Oracle, PL/SQL, and SQL
Covers core database concepts including Oracle/PL/SQL programming, schema objects, data integrity, constraints, views, data modeling, and SQL fundamentals.
Questions
Which two describe a stored procedure?
- A stored procedure is typically written in SQL.
- A stored procedure is a named PL/SQL block that can accept parameters.
- A stored procedure is a type of PL/SQL subprogram that performs an action.
- A stored procedure has three parts: the specification, the body, and the exception handler part.
- The executable section of a stored procedure contains statements that assigns values, control execution, and return values to the calling environment.
Referring to the above scenario, what structure will you deploy?
- Cursor table
- Table filter
- Dynamic procedure
- View
- Summary table
Referring to the scenario above, which one of the following is a valid ongoing "operational process?"
- OS requirement
- User analysis
- Performance monitoring
- Data dictionary specification
- System requirement
Which phase of the data modeling process contains security review?
- Structure
- Design issue
- Data source
- Storage issue
- Operational process
Which one of the following is NOT a characteristic of metadata?
- Data about data
- Describes a data dictionary
- Self-describing
- Includes user data
- Supports its own structure
Referring to the scenario above, what clause or command do you use in the query to help avoid a costly tablescan?
- GROUP BY clause
- INDEX command
- HAVING clause
- FROM clause
- WHERE clause
How to specify a column alias?
- Place the alias at the beginning of the statement to describe the table.
- Place the alias after each column, separated by white space, to describe the column
- Place the alias after each column, separated by a comma, to describe the column.
- Place the alias at the end of the statement to describe the table.
- Place the alias at the end of where clause to describe each table
An RDBMS is a
- Remote DBMS
- Relative DBMS
- Relational DBMS
- Reliable DBMS
Indicate whether this statement is true or false. The domain of a column containing the month number of the date of birth of employees differs from the domain of a column with the day number of that date.
- True
- False
Indicate whether this statement is true or false. Restricting the domain of a numeric column to non-negative values can be implemented with a check constraint.
- True
- False
Indicate whether this statement is true or false. The primary key column must contain unique values.
- True
- False
Indicate whether this statement is true or false.A view is an alternative method to store data.
- True
- False
Indicate whether this statement is true or false. A stored procedure is only executed when asked for explicitly.
- True
- False
Indicate whether this statement is true or false. A trigger can be used instead of a foreign key to implement referential integrity.
- True
- False
Which of the following is not a logical database structure?
- Chain
- Network
- Tree
- Relational
Which of the following is not a schema object?
- Indexes
- Public synonyms
- Triggers
- Packages
RAISE_APPLICATION_ERROR is a built-in procedure in oracle which is used to display the user-defined error messages along with the error number. What is the range of the error number for user defined error messages:
- Between -20000 and -20999
- Between -200000 and -209999
- Between -20001 and -20999
- Between -200001 and -209999