Which of the following statements is true about the ORDER BY clause in Oracle SQL?
Consider the following table structure:
CREATE TABLE employees (
emp_id NUMBER,
emp_name VARCHAR2(50),
emp_salary NUMBER
);
Which of the following SQL statements will retrieve the names of all employees?
Consider the following table structure:
CREATE TABLE products (
product_id NUMBER,
product_name VARCHAR2(50),
product_price NUMBER
);
Which of the following SQL statements will retrieve the products with a price greater than 100?
Consider the following table structure:
CREATE TABLE students (
student_id NUMBER,
student_name VARCHAR2(50),
student_grade VARCHAR2(10)
);
Which of the following SQL statements will retrieve the names of students whose grade is 'A'?
Consider the following table structure:
CREATE TABLE orders (
order_id NUMBER,
order_date DATE,
order_total NUMBER
);
Which of the following SQL statements will retrieve the total order amount for orders placed in the year 2022?
Consider the following table structure:
CREATE TABLE employees (
emp_id NUMBER,
emp_name VARCHAR2(50),
emp_salary NUMBER
);
Which of the following SQL statements will retrieve the names of the top 5 highest-paid employees?
Consider the following table structure:
CREATE TABLE students (
student_id NUMBER,
student_name VARCHAR2(50),
student_grade VARCHAR2(10)
);
Which of the following SQL statements will retrieve the number of students in each grade, along with the grade and the count?
Consider the following table structure:
CREATE TABLE orders (
order_id NUMBER,
order_date DATE,
order_total NUMBER
);
Which of the following SQL statements will retrieve the average order total for each year, along with the year and the average total?
Consider the following table structure:
CREATE TABLE employees (
emp_id NUMBER,
emp_name VARCHAR2(50),
emp_salary NUMBER
);
Which of the following SQL statements will calculate the total salary of all employees?
Consider the following table structure:
CREATE TABLE products (
product_id NUMBER,
product_name VARCHAR2(50),
product_price NUMBER
);
Consider the following table structure:
CREATE TABLE orders (
order_id NUMBER,
order_date DATE,
order_total NUMBER
);
Which of the following SQL statements will retrieve the order IDs for orders placed on weekends (Saturday and Sunday)?