Querying Basics interview questions

18 real Querying Basics questions from the SQL bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is SELECT?

Junior
  1. A.retrieves one or more columns from a table
  2. B.sorts the result set by one or more columns, ascending by default
  3. C.removes duplicate rows from the result set
  4. D.restricts how many rows are returned and skips a number of leading rows
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.SELECT — filters rows based on a condition before any grouping
  2. B.SELECT — matches text against a pattern using % (any run) and _ (single char) wildcards
  3. C.SELECT — retrieves one or more columns from a table
  4. D.SELECT — removes duplicate rows from the result set
Reveal the answer + AI explanation — free account

4. What is WHERE?

Junior
  1. A.restricts how many rows are returned and skips a number of leading rows
  2. B.filters rows based on a condition before any grouping
  3. C.retrieves one or more columns from a table
  4. D.removes duplicate rows from the result set
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.WHERE — matches text against a pattern using % (any run) and _ (single char) wildcards
  2. B.WHERE — retrieves one or more columns from a table
  3. C.WHERE — restricts how many rows are returned and skips a number of leading rows
  4. D.WHERE — filters rows based on a condition before any grouping
Reveal the answer + AI explanation — free account

7. What is ORDER BY?

Junior
  1. A.sorts the result set by one or more columns, ascending by default
  2. B.matches text against a pattern using % (any run) and _ (single char) wildcards
  3. C.retrieves one or more columns from a table
  4. D.restricts how many rows are returned and skips a number of leading rows
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.ORDER BY — retrieves one or more columns from a table
  2. B.ORDER BY — restricts how many rows are returned and skips a number of leading rows
  3. C.ORDER BY — removes duplicate rows from the result set
  4. D.ORDER BY — sorts the result set by one or more columns, ascending by default
Reveal the answer + AI explanation — free account

10. What is DISTINCT?

Junior
  1. A.retrieves one or more columns from a table
  2. B.restricts how many rows are returned and skips a number of leading rows
  3. C.filters rows based on a condition before any grouping
  4. D.removes duplicate rows from the result set
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.DISTINCT — removes duplicate rows from the result set
  2. B.DISTINCT — filters rows based on a condition before any grouping
  3. C.DISTINCT — matches text against a pattern using % (any run) and _ (single char) wildcards
  4. D.DISTINCT — sorts the result set by one or more columns, ascending by default
Reveal the answer + AI explanation — free account

13. What is LIMIT / OFFSET?

Mid
  1. A.filters rows based on a condition before any grouping
  2. B.retrieves one or more columns from a table
  3. C.restricts how many rows are returned and skips a number of leading rows
  4. D.removes duplicate rows from the result set
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.LIMIT / OFFSET — restricts how many rows are returned and skips a number of leading rows
  2. B.LIMIT / OFFSET — sorts the result set by one or more columns, ascending by default
  3. C.LIMIT / OFFSET — retrieves one or more columns from a table
  4. D.LIMIT / OFFSET — filters rows based on a condition before any grouping
Reveal the answer + AI explanation — free account

16. What is LIKE?

Junior
  1. A.sorts the result set by one or more columns, ascending by default
  2. B.matches text against a pattern using % (any run) and _ (single char) wildcards
  3. C.retrieves one or more columns from a table
  4. D.restricts how many rows are returned and skips a number of leading rows
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Junior
  1. A.LIKE — removes duplicate rows from the result set
  2. B.LIKE — matches text against a pattern using % (any run) and _ (single char) wildcards
  3. C.LIKE — filters rows based on a condition before any grouping
  4. D.LIKE — restricts how many rows are returned and skips a number of leading rows
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Querying Basics free