Skip to content

Intermediate level sql quiz

Which SQL keyword is used to create an index on a table?

What is the purpose of the `UNION ALL` operator in SQL?

Which of the following is a correct SQL statement to find the second highest salary from an `employees` table?

Which SQL command is used to remove all rows from a table without deleting the table itself?

What is the function of the `RANK()` window function in SQL?

Which SQL clause is used to combine rows from two or more tables based on a related column?

What is the default join type in SQL if no join type is specified?

Which SQL function is used to convert a string to lowercase?

What does the `DISTINCT` keyword do in SQL?

Which of the following is the correct way to join three tables in SQL?


J2J Institute private limited