Oracle Database Quiz Questions

Course Name:Oracle
Chapter Name:Chapter 7 - DQL (Data Query Language)
Current Quiz Count:30
Progress
0%
Q1
True / False

In Oracle, the > operator is used to compare two values to determine if the left value is greater than the right value.

Q2
True / False

The < operator in Oracle is used to compare two values to determine if the left value is less than the right value.

Q3
True / False

In Oracle, you can use the > and < operators with numeric data types only.

Q4
True / False

In Oracle, the > and < operators can be used in the WHERE clause to filter rows based on a range of values.

Q5
True / False

The > and < operators in Oracle can be combined with logical operators like AND and OR to create complex conditions.

Q6
True / False

In Oracle, the > operator can be used to compare two date values to determine which date is later.

Q7
True / False

In Oracle, the > and < operators can be used in subqueries to filter rows based on the results of another query.

Q8
True / False

The > and < operators in Oracle are case-sensitive when used with character data types.

Q9
True / False

In Oracle, the > and < operators can be used in a JOIN condition to join tables based on non-equality conditions.

Q10
True / False

The Oracle Certified Professional (OCP) exam includes knowledge on using the > and < operators efficiently and understanding their impact on query performance and logical outcomes.

Q11
Single Choice

What is the primary use of the > operator in Oracle SQL?

Q12
Single Choice

What is the primary use of the < operator in Oracle SQL?

Q13
Single Choice

Consider the following Oracle SQL query:What does this query return?

SQL Code
SELECT * FROM employees WHERE salary > 5000;
Q14
Single Choice

Consider the following Oracle SQL query:What does this query return?

SQL Code
SELECT * FROM orders WHERE order_date < '01-JAN-2023';
Q15
Single Choice

What will be the result of the following Oracle SQL query?

SQL Code
SELECT * FROM products WHERE price > 100 AND price < 500;
Q16
Single Choice

Consider the following Oracle SQL query:What does this query return?

SQL Code
SELECT first_name, last_name FROM employees WHERE hire_date > '01-JAN-2020';
Q17
Single Choice

How does Oracle treat NULL values when using the > or < operators in a query?

Q18
Single Choice

Consider the following Oracle SQL query:What does this query return?

SQL Code
SELECT * FROM sales WHERE amount > 1000 AND amount < 5000 OR discount > 10;
Q19
Single Choice

What will be the output of the following Oracle SQL query if the price column contains NULL values?

SQL Code
SELECT * FROM products WHERE price < 100;
Q20
Single Choice

In an Oracle certification exam, you encounter the following SQL statement:What does this query return?

SQL Code
SELECT employee_id, salary FROM employees WHERE salary > (SELECT AVG(salary) FROM employees);
Q21
Multiple Choice

Which SQL code snippet correctly uses the '>' and '<' operators to filter employees where the salary is greater than 50000 and less than 100000 in Oracle?

SQL Code
SELECT *
FROM employees
WHERE salary > 50000 AND salary < 100000;

SELECT *
FROM employees
WHERE salary >= 50000 AND salary <= 100000;

SELECT employee_id, salary
FROM employees
WHERE salary > 50000 AND salary < 100000;
Q22
Multiple Choice

Which SQL code snippet demonstrates how to use the '>' and '<' operators to filter orders where the total amount is greater than 1000 and less than 5000 in Oracle?

SQL Code
SELECT *
FROM orders
WHERE total_amount > 1000 AND total_amount < 5000;

SELECT *
FROM orders
WHERE total_amount > 1000 OR total_amount < 5000;

SELECT order_id, total_amount
FROM orders
WHERE total_amount > 1000 AND total_amount < 5000;
Q23
Multiple Choice

Which SQL code snippet uses the '>' and '<' operators to filter products where the price is greater than 100 and less than 1000 in Oracle?

SQL Code
SELECT *
FROM products
WHERE price > 100 AND price < 1000;

SELECT *
FROM products
WHERE price > 100 AND price < 500;

SELECT product_id, price
FROM products
WHERE price > 100 AND price < 1000;
Q24
Multiple Choice

Which SQL code snippet demonstrates how to use the '>' and '<' operators to filter customers where the age is greater than 25 and less than 50 in Oracle?

SQL Code
SELECT *
FROM customers
WHERE age > 25 AND age < 50;

SELECT *
FROM customers
WHERE age >= 25 AND age <= 50;

SELECT customer_id, age
FROM customers
WHERE age > 25 AND age < 50;
Q25
Multiple Choice

Which SQL code snippet uses the '>' and '<' operators to filter sales where the quantity is greater than 10 and less than 100 in Oracle?

SQL Code
SELECT *
FROM sales
WHERE quantity > 10 AND quantity < 100;

SELECT *
FROM sales
WHERE quantity > 10 AND quantity < 50;

SELECT sale_id, quantity
FROM sales
WHERE quantity > 10 AND quantity < 100;
Q26
Multiple Choice

Which SQL code snippet demonstrates advanced use of the '>' and '<' operators to filter employees where the performance rating is greater than 3 and less than 5 in Oracle?

SQL Code
SELECT *
FROM employees
WHERE performance_rating > 3 AND performance_rating < 5;

SELECT *
FROM employees
WHERE performance_rating > 2 AND performance_rating < 5;

SELECT employee_id, performance_rating
FROM employees
WHERE performance_rating > 3 AND performance_rating < 5;
Q27
Multiple Choice

Which SQL code snippet uses the '>' and '<' operators to filter orders where the delivery time is greater than 2 days and less than 7 days in Oracle?

SQL Code
SELECT *
FROM orders
WHERE delivery_time > 2 AND delivery_time < 7;

SELECT *
FROM orders
WHERE delivery_time > 1 AND delivery_time < 7;

SELECT order_id, delivery_time
FROM orders
WHERE delivery_time > 2 AND delivery_time < 7;
Q28
Multiple Choice

Which SQL code snippet demonstrates advanced use of the '>' and '<' operators to filter products where the rating is greater than 3.5 and less than 4.5 in Oracle?

SQL Code
SELECT *
FROM products
WHERE rating > 3.5 AND rating < 4.5;

SELECT *
FROM products
WHERE rating > 3.0 AND rating < 4.5;

SELECT product_id, rating
FROM products
WHERE rating > 3.5 AND rating < 4.5;
Q29
Multiple Choice

Which SQL code snippet uses the '>' and '<' operators to filter inventory where the reorder level is greater than 50 and less than 200 in Oracle?

SQL Code
SELECT *
FROM inventory
WHERE reorder_level > 50 AND reorder_level < 200;

SELECT *
FROM inventory
WHERE reorder_level > 50 AND reorder_level < 150;

SELECT item_id, reorder_level
FROM inventory
WHERE reorder_level > 50 AND reorder_level < 200;
Q30
Multiple Choice

Which SQL code snippet demonstrates the certification-level use of the '>' and '<' operators to filter transactions where the transaction time is greater than 30 minutes and less than 2 hours in Oracle?

SQL Code
SELECT *
FROM transactions
WHERE transaction_time > 30 AND transaction_time < 120;

SELECT *
FROM transactions
WHERE transaction_time > 60 AND transaction_time < 120;

SELECT transaction_id, transaction_time
FROM transactions
WHERE transaction_time > 30 AND transaction_time < 120;