The 'Oracle Mock Test' assesses knowledge on Oracle SQL and database management, focusing on SQL statements, table constraints, and query functions. It's designed for learners to validate their understanding and readiness for working with Oracle databases.
ALTER TABLE customers ADD CONSTRAINT cust_name_nn CHECK customer_name IS NOT NULL;
ALTER TABLE customers MODIFY CONSTRAINT cust_name_nn CHECK customer_name IS NOT NULL;
ALTER TABLE customers MODIFY customer_name CONSTRAINT cust_name_nn NOT NULL;
ALTER TABLE customers MODIFY customer_name CONSTRAINT cust_name_nn IS NOT NULL;
ALTER TABLE customers MODIFY name CONSTRAINT cust_name_nn NOT NULL;
ALTER TABLE customers ADD CONSTRAINT cust_name_nn CHECK customer_name NOT NULL;
Rate this question:
SER_NO
ORDER_ID
STATUS
PROD_ID
ORD_TOTAL
Composite index on ORDER_ID and ORDER_DATE
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:
The underlying tables must have data.
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:
SELECT employee_id, last_name, job_id FROM employees WHERE job_id LIKE '%SA\_%' ESCAPE '\';
SELECT employee_id, last_name, job_id FROM employees WHERE job_id LIKE '%SA_';
SELECT employee_id, last_name, job_id FROM employees WHERE job_id LIKE '%SA_' ESCAPE "\";
SELECT employee_id, last_name, job_id FROM employees WHERE job_id = '%SA_';
Rate this question:
An error is returned.
You are prompted to enter a new value.
A report is produced that matches the first report produced.
You are asked whether you want a new value or if you want to run the report based on the previous value.
Rate this question:
SELECT TO_CHAR(2000, '$#,###.##') FROM dual;
SELECT TO_CHAR(2000, '$0,000.00') FROM dual;
SELECT TO_CHAR(2000, '$9,999.00') FROM dual;
SELECT TO_CHAR(2000, '$9,999.99') FROM dual;
SELECT TO_CHAR(2000, '$2,000.00') FROM dual;
SELECT TO_CHAR(2000, '$N,NNN.NN') FROM dual;
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:
SELECT dear customer, customer_name, FROM customers;
SELECT "Dear Customer", customer_name || ',' FROM customers;
SELECT 'Dear Customer ' || customer_name ',' FROM customers;
SELECT 'Dear Customer ' || customer_name || ',' FROM customers;
SELECT "Dear Customer " || customer_name || "," FROM customers;
SELECT 'Dear Customer ' || customer_name || ',' || FROM customers;
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 DECODE(SUBSTR(SYSDATE, 8), 'year') FROM dual;
SELECT TO_CHAR(SUBSTR(SYSDATE, 8,2),'yyyy') FROM dual;
Rate this question:
SELECT SUM(subj1, subj2, subj3) FROM marks;
SELECT SUM(subj1 + subj2 + subj3) FROM marks;
SELECT SUM(subj1), SUM(subj2), SUM(subj3) FROM marks;
SELECT MAX(subj1, subj2, subj3) FROM marks;
SELECT MINIMUM(subj1) FROM marks;
SELECT COUNT(std_id) FROM marks WHERE subj1 >= AVG(subj1);
Rate this question:
INSERT
UPDATE
SELECT
DESCRIBE
DELETE
RENAME
Rate this question:
SELECT TO_CHAR(2000, '$#,###.##') FROM dual;
SELECT TO_CHAR(2000, '$0,000.00') FROM dual;
SELECT TO_CHAR(2000, '$9,999.00') FROM dual;
SELECT TO_CHAR(2000, '$9,999.99') FROM dual;
SELECT TO_CHAR(2000, '$2,000.00') FROM dual;
SELECT TO_CHAR(2000, '$N,NNN.NN') FROM dual;
Rate this question:
SELECT category, SUM(price * quantity) TOTAL, location FROM inventory WHERE price > 100.00 GROUP BY category;
SELECT category, location, SUM(price) FROM inventory WHERE price > 100.00 GROUP BY category, location;
SELECT category, SUM(price * quantity) TOTAL, location FROM inventory WHERE price > 100.00;
SELECT category, SUM(price * quantity) TOTAL, location FROM inventory WHERE price > 100.00 GROUP BY category, location;
Rate this question:
The Oracle Server will evaluate a HAVING clause before a WHERE clause.
The Oracle Server will evaluate a WHERE clause before a GROUP BY clause.
The Oracle Server will evaluate a GROUP BY clause before a HAVING clause.
The Oracle Server will evaluate an ORDER BY clause before a WHERE clause.
The Oracle Server will evaluate an ORDER BY clause before a HAVING clause.
Rate this question:
Convert 10 to ‘TEN’
Convert ‘10’ to 10
Convert ‘10’ to ‘10’
Convert ‘TEN’ to 10
Convert a date to a character expression
Convert a character expression to a date
Rate this question:
ORDER BY SALARY > 5000
GROUP BY SALARY > 5000
HAVING SALARY > 5000
WHERE SALARY > 5000
Rate this question:
SELECT SUBSTR( ‘HelloWorld’,1) FROM dual;
SELECT INITCAP(TRIM (‘HelloWorld’, 1,1)) FROM dual;
SELECT LOWER(SUBSTR(‘HellowWorld’, 1, 1) FROM dual;
SELECT LOWER(SUBSTR(‘HelloWorld’, 2, 1) FROM dual;
SELECT LOWER(TRIM (‘H’ FROM ‘HelloWorld’)) FROM dual;
Rate this question:
CONCAT
ROUND
TRUNC
RPAD
INSTR
Rate this question:
Quiz Review Timeline (Updated): Mar 18, 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.