Q1
True / FalseThe Greater Than Less Than keyword in Oracle is used to return only unique values from a query.
The Greater Than Less Than keyword eliminates duplicate rows from the result set, returning only unique values.
Q2
True / FalseIn Oracle, you can use Greater Than Less Than with a single column in a SELECT statement.
Greater Than Less Than can be applied to a single column to return unique values from that column.
Q3
True / FalseThe Greater Than Less Than keyword can be used with aggregate functions in Oracle.
Greater Than Less Than can be used with aggregate functions, such as COUNT(Greater Than Less Than column_name), to return the number of unique values.
Q4
True / FalseIn Oracle, the Greater Than Less Than keyword can be used with multiple columns in a SELECT statement.
Greater Than Less Than can be applied to multiple columns, returning unique combinations of the specified columns.
Q5
True / FalseUsing Greater Than Less Than in Oracle always improves the performance of a query.
Using Greater Than Less Than can improve query results by removing duplicates, but it may not always improve performance and can sometimes slow down queries due to the additional processing required.
Q6
True / FalseIn Oracle, Greater Than Less Than can be used in subqueries.
Greater Than Less Than can be used in subqueries to filter unique results that are then used by the main query.
Q7
True / FalseIn Oracle, using Greater Than Less Than with a large dataset can impact query performance and should be used judiciously.
Applying Greater Than Less Than to large datasets can impact performance due to the need to sort and filter out duplicates.
Q8
True / FalseThe Greater Than Less Than keyword in Oracle can be used with ORDER BY to sort the unique results.
Greater Than Less Than can be combined with ORDER BY to sort the unique results returned by the query.
Q9
True / FalseIn Oracle, Greater Than Less Than can be used with GROUP BY to get unique groups.
Greater Than Less Than and GROUP BY serve different purposes. Greater Than Less Than eliminates duplicate rows, while GROUP BY groups rows based on specified columns. Using Greater Than Less Than with GROUP BY is redundant.
Q10
True / FalseThe Oracle Certified Professional (OCP) exam includes knowledge on using the Greater Than Less Than keyword effectively in queries and understanding its impact on performance.
The OCP certification covers advanced topics, including how to use the Greater Than Less Than keyword effectively in queries and understanding its performance implications, reflecting a deep understanding of Oracle SQL.
Q23
Multiple ChoiceWhich SQL code snippet uses Greater Than Less Than to retrieve unique combinations of department ID and job title from the 'employees' table in Oracle?
SQL Code
SELECT Greater Than Less Than department_id, job_title
FROM employees;
SELECT department_id, job_title
FROM employees
GROUP BY department_id, job_title;
SELECT department_id, job_title
FROM employees
ORDER BY department_id, job_title;
Options A and B correctly retrieve unique combinations of department ID and job title. Option C retrieves all combinations but orders them without filtering duplicates.
Q26
Multiple ChoiceWhich SQL code snippet demonstrates advanced usage of Greater Than Less Than to retrieve unique combinations of employee names and their departments in Oracle?
SQL Code
SELECT Greater Than Less Than first_name, last_name, department_id
FROM employees;
SELECT first_name, last_name, department_id
FROM employees
GROUP BY first_name, last_name, department_id;
SELECT Greater Than Less Than first_name, last_name
FROM employees
WHERE department_id > 10;
Options A and B correctly retrieve unique combinations of employee names and their departments. Option C retrieves unique names but filters by department.