This quiz focuses on Oracle database management, specifically index rebuilding, SQL operations, database files, and user privileges. It assesses key skills in managing large data sets and optimizing database queries, essential for IT professionals.
Dirty buffers in the database buffer cache are flushed.
The server process places the commit record in the redo log buffer.
Log Writer (LGWR) writes the redo log buffer entries to the redo log files and data files.
The user process notifies the server process that the transaction is complete
The user process notifies the server process that the resource locks can be released.
Rate this question:
Control file
password file
Parameter files
Archived log files
Rate this question:
All extents are released.
All rows of the table are deleted.
Any associated indexes are truncated.
No undo data is generated for the table's rows.
It reduces the number of extents allocated to the DEPARTMENTS table to the original setting for MINEXTENTS.
Rate this question:
DBA_TAB_PRIVS
ALL_TAB_PRIVS
USER_TAB_PRIVS
ALL_TAB_PRIVS_MADE
Rate this question:
Bitmap
Reverse key
Unique B-Tree
Normal B-Tree
Rate this question:
DBA
SYSDBA
SYSOPER
RESOURCE
Rate this question:
No action is required
Ask user B to abort the statement
Ask user A to commit the transaction
Ask user B to commit the transaction
Rate this question:
SELECT student_id, gpa FROM student_grades WHERE semester_end BETWEEN '01-JAN-2001' AND '31-DEC-2001' OR gpa > 3.0;
SELECT student_id, gpa FROM student_grades WHERE semester_end BETWEEN '01-JAN-2001' AND '31-DEC-2001' AND gpa gt 3.0;
SELECT student_id, gpa FROM student_grades WHERE semester_end BETWEEN '01-JAN-2001' AND '31-DEC-2001' AND gpa > 3.0;
SELECT student_id, gpa FROM student_grades WHERE semester_end BETWEEN '01-JAN-2001' AND '31-DEC-2001' AND gpa >= 3.0;
SELECT student_id, gpa FROM student_grades WHERE semester_end > '01-JAN-2001' OR semester_end < '31-DEC-2001' AND gpa >= 3.0;
Rate this question:
SELECT * FROM DEPT
SELECT * FROM SCOTT. DEPT
SELECT * FROM DBA.SCOTT.DEPT
SELECT * FROM ALL_USERS WHERE USER_NAME = ‘SCOTT’ AND TABLE NAME= 'DEPT'
Rate this question:
SELECT TOTAL (*) FROM customers;
SELECT COUNT (*) FROM customers;
SELECT TOTAL (customer_id) FROM customer;
SELECT COUNT(costomer_id) FROM customer;
SELECT COUNT(customers) FROM customers;
SELECT TOTAL (customer_name) FROM customers;
Rate this question:
Before the WHERE clause
Before the FROM clause
After the ORDER BY clause
After the WHERE clause
Rate this question:
You can use aggregate functions in any clause of a SELECT statement.
You can use aggregate functions only in the column list of the SELECT clause and in the WHERE clause of a SELECT statement.
You can mix single row columns with aggregate functions in the column list of a SELECT statement by grouping on the single row columns
You can pass column names, expressions, constants, or functions as parameters to an aggregate function.
You can use aggregate functions on a table, only by grouping the whole table as one single group.
Rate this question:
You have no rows in the table.
You have an employee with the name of James
You cannot roll back to the same savepoint more than once.
Your last update fails to update any rows because employee ID 180 was already deleted.
Rate this question:
Substitution variables
Replacement variables
Prompt variables
Instead-of variables
Rate this question:
0
1
0.00
An error statement
Rate this question:
SELECT a last_name, a salary, a department_id, b.maxsal FROM employees a, (SELECT department_id, max(salary)maxsal FROM employees GROUP BY department_id)b WHERE a department_id = department-id AND a_salary
SELECT a. last name, a salary, a. department_id FROM employees a WHERE a. department_id IN (SELECT department_id FROM employees b GROUP BY department_id having salary = SELECT max(salary) from employees
SELECT a last_name, a salary, a.department_id FROM employees a WHERE a salary = SELECT max(salary) FROM employees b WHERE a department_id = department_id);
SELECT a last_name, a salary, a.department_id FROM employees a WHERE (a department_id, a salary) IN (SELECT department_id, a salary) IN (SELECT department_id max(salary) FROM employees b GROUP BY department_id ORDER BY department_id);
Rate this question:
UPDATE employees SET job_id=DEFAULT AND Sal=(SELECT MAX(sal) FROM emoployees WHERE job_id='SA_REP' AND comm_pet=DEFALUT AND department_id =&did WHERE employee_id IN (103, 115),
UPDATE employees SET job_id = DEFAULT AND Sal = MAX(sal) AND comm_pct = DEFAULT OR NULL AND department _id = & did WHERE employee_id IN (103,115) AND ob_id = 'SA_REP'
UPDATE employees SET job_id = DEFAULT Sal = (SELECT MAX (sal) FROM employees WHERE job_id = 'SA_REP') comm_pct = DEFAULT, department _id = &did WHERE employee_id IN (103,115)
UPDATE emplouees SET job_id = DEFAULT sal = MAX (sal) comm_pct = DEFAULT department_id = &did WHERE employee_id IN (103,115) AND job_id = 'SA_REP'
UPDATE employees SET job_id = DEFAULT Sal = (SELECT MAX(sal) FROM employees WHERE job_id = 'SA_REP') comm_pct = DEFAULT OR NULL, department_id = &did WHEREemployee_id IN (103,115)
Rate this question:
TIMESTAMP
INTERVAL MONTH TO DAY
INTERVAL DAY TO SECOND
INTERVAL YEAR TO MONTH
TIMESTAMP WITH DATABASE TIMEZONE
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)
Rate this question:
ALTER TABLE students ADD PRIMARY KEY student_id;
ALTER TABLE students ADD CONSTRAINT PRIMARY KEY (student_id);
ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY stuent_id;
ALTER TABLE students ADD CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
ALTER TABLE students MODIFY CONSTRAINT stud_id_pk PRIMARY KEY (student_id)
Rate this question:
A view can be created as read only
A view can be created as a join on two or more tables.
A view cannot have an ORDER BY clause in the SELECT statement.
A view cannot be created with a GROUP BY clause in the SELECT statement.
A view must have aliases defined for the column names in the SELECT statement.
Rate this question:
INSERT
DELETE
EXPAND
DESCRIBE
Rate this question:
SELECT TO_CHAR(SYSDATE, ‘yyyy’) FROM dual
SELECT TO_DATE(SYSDATE,’yyyy’) FROM dual
SELECT DECODE (SUBSTR (SYSDATE, 8), ‘YYYY’) FROM dual
SELECT TO_CHAR (SUBSTR(SYSDATE, 8,2),’yyyy’) FROM dual
Rate this question:
Create groups of data
Sort data in a specific order
Convert data to a different format
Retrieve data based on an unknown condition
Rate this question:
WHERE
HAVING
RESTRICT
GROUP BY
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, ‘FMDAY, DDD Month, YYYY’) FROM dual
SELECT TO_DATES(SYSDATE,’FMDY, DDD Month, YYYY’) FROM dual
Rate this question:
Constraints provide data independence
Constraint 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:
TRIM
REPLACE
TRUNC
TO_DATE
MOD
Rate this question:
All of the desired results
Two of the desired results
One of the desired results
An error statement
Rate this question:
Quiz Review Timeline (Updated): Mar 21, 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.