Oracle Test 5 assesses knowledge in SQL queries, table operations, and data manipulation within Oracle databases. It evaluates understanding of complex SQL statements, table creation, rollback operations, and conditional data retrieval.
The DESCRIBE DEPT statement displays the structure of the DEPT table.
The ROLLBACK statement frees the storage space occupies by the DEPT table.
The DESCRIBE DEPT statement returns an error ORA-04043: object DEPT does not exist.
The DESCRIBE DEPT statement displays the structure of the DEPT table only if there is a COMMIT statement introduced before the ROLLBACK statement.
Rate this question:
The SQL statement displays the desired results.
The column in the WHERE clause should be changed to display the desired results.
The operator in the WHERE clause should be changed to display the desired results.
The WHERE clause should be changed to use an outer join to display the desired results.
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
The tablespace must contain an active rollback segments
The tablespace must be online.
The tablespace must not contain any active rollback segments.
The tablespace must not be involved in an open backup.
The tablespace must be involved in an open backup.
Rate this question:
0
1
0.00
An error statement
Rate this question:
The value displayed in the CALC_VALUE column will be lower.
The value displayed in the CALC_VALUE column will be higher.
There will be no difference in the value displayed in the CALC_VALUE column.
An error will be reported.
Rate this question:
SELECT dept_id, MIN(salary(, MAX(salary) FROM employees WHERE MIN(salary) < 5000 AND MAX(salary) > 15000;
SELECT dept_id, MIN(salary), MAX(salary) FROM employees WHERE MIN(salary) < 5000 AND MAX(salary) > 15000 GROUP BY dept_id;
SELECT dept_id, MIN(salary), MAX(salary) FROM employees HAVING MIN(salary) < 5000 AND MAX(salary) > 15000;
SELECT dept_id, MIN(salary), MAX(salary) FROM employees GROUP BY dept_id HAVING MIN(salary) < 5000 AND MAX(salary) < 15000;
SELECT dept_id, MIN(salary), MAX(salary) FROM employees GROUP BY dept_id, salary HAVING MIN(salary) < 5000 AND MAX(salary) > 15000;
Rate this question:
The statement executes successfully and returns the student ID and sum of all marks for each student who obtained more than the average mark in each subject
The statement returns an error at the SELECT clause.
The statement returns an error at the WHERE clause.
The statement returns an error at the ORDER BY clause. SUBJ2
Rate this question:
MERGE INTO new_employees c USING employees e ON (c.employee_id = e.employee_id) WHEN MATCHED THEN UPDATE SET c.name = e.first_name ||’,’|| e.last_name WHEN NOT MATCHED THEN INSERT VALUES(e.employee_id, e.first_name ||’, ‘||e.last_name);
MERGE new_employees c USING employees e ON (c.employee_id = e.employee_id) WHEN EXIST THEN UPDATE SET c.name = e.first_name ||’,’|| e.last_name WHEN NOT MATCHED THEN INSERT VALUES(e.employee_id, e.first_name ||’, ‘||e.last_name);
MERGE INTO new employees c USING employees e ON (c.employee_id = e.employee_id) WHEN EXISTS THEN UPDATE SET c.name = e.first_name ||’,’|| e.last_name WHEN NOT MATCHED THEN INSERT VALUES(e.employee_id, e.first_name ||’, ‘||e.last_name);
MERGE new_employees c FROM employees e ON (c.employee_id = e.employee_id) WHEN MATCHED THEN UPDATE SET c.name = e.first_name ||’,’|| e.last_name WHEN NOT MATCHED THEN INSERT INTO new_employees VALUES(e.employee_id, e.first_name ||’.’||e.last_name);
Rate this question:
CREATE INDEX NAME_IDX (first_name, last_name);
CREATE INDEX NAME_IDX (first_name AND last_name);
CREATE INDEX NAME_IDX ON (first_name, last_name);
CREATE INDEX NAME_IDX ON employees (first_name AND last_name);
CREATE INDEX NAME_IDX ON employees(first_name, last_name);
CREATE INDEX NAME_IDX FOR employees(first_name, la st_name);
Rate this question:
SELECT student_ id, marks, ROWNUM "Rank" FROM students WHERE ROWNUM
SELECT student_id, marks, ROWID "Rank" FROM students WHERE ROWID
SELECT student_id, marks, ROWNUM "Rank" FROM (SELECT student_id, marks FROM students WHERE ROWNUM
SELECT student_id, marks, ROWNUM "Rank: FROM (SELECT student_id, marks FROM students ORDER BY marks) WHERE ROWNUM
Rate this question:
True
False
Rate this question:
Updating
Viewing
Deleting
Inserting
Truncating
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
Immediately after the SELECT clause
. Before the WHERE clause
Before the FROM clause
After the ORDER BY clause
After the WHERE clause
Rate this question:
In the INTO clause of an INSERT statement
In the FROM clause of a SELECT statement
In the GROUP BY clause of a SELECT statement
In the WHERE clause of a SELECT statement
In the SET clause of an UPDATE statement
In the VALUES clause of an INSERT statement
Rate this question:
The indexed column is declared as NOT NULL.
The indexed columns are used in the FROM clause
The indexed columns are part of an expression
The indexed column contains a wide range of values.
Rate this question:
True
False
Rate this question:
SELECT customer_id, order_id, order_total FROM orders RANGE ON order_total (100 AND 2000) INCLUSIVE;
SELECT customer_id, order_id, order_total NUMBER(4) NOT NULL NOT NULL . FROM orders HAVING order_total BETWEEN 100 and 2000;
SELECT customer_id, order_id, order_total FROM orders WHERE order_total BETWEEN 100 and 2000;
SELECT customer_id, order_id, order_total FROM orders WHERE order_total >= 100 and
SELECT customer_id, order_id, order_total FROM orders WHERE order_total >= 100 and order_total
Rate this question:
Because of a syntax problem, no row will be returned
It calculates, for each employee in the employees table, the average salary of the employees reporting to his/her respective manager
It calculates, for each employee in the employees table, the average salary of the employees reporting to his/her respective manager who were hired just before the employee
It calculates, for each employee in the employees table, the average salary of the employees reporting to the same manager who were hired in the range just before through just after the employee
It calculates, for each employee in the employees table, the average salary of the employees reporting to his/her respective manager who were hired just after the employee
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
You obtain the results retrieved from the public synonym HR created by the database administrator.
You obtain the results retrieved from the HR table that belongs to your schema.
You get an error message because you cannot retrieve from a table that has the same name as a public synonym.
You obtain the results retrieved from both the public synonym HR and the HR table that belongs to your schema, as a Cartesian product.
You obtain the results retrieved from both the public synonym HR and the HR table that belongs to your schema, as a FULL JOIN.
Rate this question:
None
A change to the DEFAULT value affects only subsequent insertions to the table.
Column definitions cannot be altered to add DEFAULT values for columns with a NUMBER data type.
All the rows that have a NULL value for the SALARY column will be updated with the value 5000.
Rate this question:
Take the tablespace offline
Begin a backup
End a backup
Take the tablespace online
Make the tablespace read only
Make the tablespace read write
Rate this question:
True
False
Rate this question:
What is necessary for your query on an existing view to execute successfully?
You need SELECT privileges on the view.
The underlying tables must be in the same schema.
You need SELECT privileges only on the underlying tables
Rate this question:
Substitution variables
Replacement variables
Prompt variables
Instead-of variables
This feature cannot be implemented through /SQL*Plus.
Rate this question:
Cannot be nested
. manipulate data items
Act on each row returned
Return one result per row
Accept only one argument and return only one value
Accept arguments which can be a column or an expression
Rate this question:
Must begin with either a number or a letter.
Must be 1-30 characters long.
Should not be an Oracle Server reserved word.
Must contain only A-Z, a-z, 0-+, _, *, and #.
Must contain only A-Z, a-z, 0-9, _, $, and #.
Must begin with a letter.
Rate this question:
CASCADE
UNIQUE
CHECK
NON UNIQUE
PRIMARY KEY
CONSTANT
NOT NULL
Rate this question:
INSERT
UPDATE
SELECT
DESCRIBE
DELETE
RENAME
Rate this question:
. the database must be taken offline before renaming
The database must be open
When only a single datafile is to be renamed
When only a single datafile on the same drive is to be renamed
Rate this question:
=
LIKE
BETWEEN
NOT IN
IS
Rate this question:
SELECT ename, salary*12 ‘Annual Salary’ FROM employees;
SELECT ename, salary*12 “Annual Salary” FROM employees;
SELECT ename, salary*12 AS Annual Salary FROM employees;
SELECT ename, salary*12 AS INITCAP(“ANNUAL SALARY”) FROM employees
Rate this question:
CREATE USER susan;
CREATE OR REPLACE USER susan;
CREATE NEW USER susan DEFAULT;
CREATE USER susan IDENTIFIED BY blue;
CREATE NEW USER susan IDENTIFIED by blue;
CREATE OR REPLACE USER susan IDENTIFIED BY blue;
Rate this question:
Binary data up to 4 gigabytes.
Character data up to 4 gigabytes.
Raw binary data of variable length up to 2 gigabytes.
Binary data stored in an external file, up to 4 gigabytes.
A hexadecimal string representing the unique address of a row in its table.
Rate this question:
&
ACCEPT
PROMPT
&&
Rate this question:
Constraints provide data independence.
Constraints make complex queries easy.
Constraints enforce rules at the view level.
. Constraints enforce rules at the table level.
. Constraints prevent the deletion of a table if there are dependencies
Constraints prevent the deletion of an index if there are dependencies.
Rate this question:
/SQL*Plus commands cannot be abbreviated.
/SQL*Plus commands are accesses from a browser
/SQL*Plus commands are used to manipulate data in tables.
/SQL*Plus commands manipulate table definitions in the database.
/SQL*Plus is the Oracle proprietary interface for executing SQL statements
The sort is in ascending by order by default.
The sort is in descending order by default.
The ORDER BY clause must precede the WHERE clause
The ORDER BY clause is executed on the client side.
The ORDER BY clause comes last in the SELECT statement.
The ORDER BY clause is executed first in the query execution
Rate this question:
PL/SQL blocks
SQL*Plus commands
Security commands
SQL commands
Rate this question:
MERGE
INSERT
UPDATE
ADD
ENTER
You cannot enter the phone numbers for the existing employee records.
Rate this question:
Use the DESCRIBE command in the EMP_DEPT VU view.
Use the DEFINE VIEW command on the EMP_DEPT VU view.
Use the DESCRIBE VIEW command on the EMP_DEPT VU view.
Query the USER_VIEWS data dictionary view to search for the EMP_DEPT_VU view.
Query the USER_SOURCE data dictionary view to search for the EMP_DEPT_VU view
Query the USER_OBJECTS data dictionary view to search for the EMP_DEPT_VU view.
Rate this question:
SELECT TO_DATE(SYSDATE, 'FMDAY, DD Month, YYYY') FROM dual;
SELECT TO_CHAR(SYSDATE, 'FMDD, DY Month, 'YYY') FROM dual;
SELECT TO_CHAR(SYSDATE, 'FMDay, DD Month, YYYY') FROM dual;
SELECT TO_CHAR(SYSDATE, 'FMDY, DDD Month, YYYY') FROM dual;
SELECT TO_DATE(SYSDATE, 'FMDY, DDD Month, YYYY') FROM dual;
Rate this question:
Quiz Review Timeline (Updated): Mar 22, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.