Which SQL command is used to retrieve data from a database?
Which SQL command is used to insert data into a database?
Which SQL command is used to update data in a database?
Which SQL command is used to delete data from a database?
Consider the following SQL query:
SELECT * FROM customers;
What will be the output of this query?
Consider the following SQL query:
SELECT COUNT(*) FROM employees;
What will be the output of this query?
Consider the following SQL query:
SELECT name, age FROM students WHERE age > 20;
What will be the output of this query?
Consider the following SQL query:
SELECT AVG(salary) FROM employees;
What will be the output of this query?
Consider the following SQL query:
SELECT MAX(price) FROM products;
What will be the output of this query?
Consider the following SQL query:
SELECT name FROM employees WHERE age > 30;
Which of the following indexes would be most beneficial for optimizing this query?
Consider the following SQL query:
SELECT COUNT(DISTINCT department) FROM employees;
What will be the output of this query?
Consider the following SQL query:
SELECT * FROM orders WHERE order_date BETWEEN '2022-01-01' AND '2022-12-31';
What will be the output of this query?
Consider the following SQL query:
SELECT COUNT(*) FROM products WHERE price > 100;
What will be the output of this query?
Consider the following SQL query:
SELECT SUM(quantity) FROM orders WHERE product_id = 123;
What will be the output of this query?