Consider a table with columns: id, name, salary. If a row has NULL salary, what will SELECT * FROM table WHERE salary = NULL return?
What will be the output of: SELECT MAX(salary) FROM employees GROUP BY department;
What is the difference between UNION and UNION ALL in SQL?
Which of the following is the correct order of SQL clause execution?
What will be the result of: SELECT COUNT(DISTINCT department) FROM employees WHERE salary > 50000;?
Advertisement
For optimizing a query with multiple JOINs and subqueries, which approach is most effective for 2024 databases?
Which scenario requires using PARTITION BY in window functions instead of GROUP BY?
A table has 1M rows. Query A uses WHERE on non-indexed column, Query B uses indexed column in WHERE. Expected performance difference?
In concurrent transaction scenarios, which isolation level allows dirty reads?
For a student result database, to calculate cumulative marks from beginning of year, which window function is appropriate?
For optimizing a complex query joining 5 tables with WHERE conditions, what is the recommended approach?
In a manufacturing database, to find products with sales in ALL regions, which approach is correct?