Querying Basics interview questions

18 Querying Basics questions from the SQL bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

2. Which term means: "retrieves one or more columns from a table"?

Junior
  1. A.LIMIT / OFFSET
  2. B.ORDER BY
  3. C.WHERE
  4. D.SELECT

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

5. Which term means: "filters rows based on a condition before any grouping"?

Junior
  1. A.LIMIT / OFFSET
  2. B.LIKE
  3. C.ORDER BY
  4. D.WHERE

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

8. Which term means: "sorts the result set by one or more columns, ascending by default"?

Junior
  1. A.SELECT
  2. B.LIMIT / OFFSET
  3. C.ORDER BY
  4. D.WHERE

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

11. Which term means: "removes duplicate rows from the result set"?

Junior
  1. A.DISTINCT
  2. B.SELECT
  3. C.LIMIT / OFFSET
  4. D.ORDER BY

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

14. Which term means: "restricts how many rows are returned and skips a number of leading rows"?

Mid
  1. A.SELECT
  2. B.ORDER BY
  3. C.WHERE
  4. D.LIMIT / OFFSET

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

17. Which term means: "matches text against a pattern using % (any run) and _ (single char) wildcards"?

Junior
  1. A.LIKE
  2. B.LIMIT / OFFSET
  3. C.WHERE
  4. D.ORDER BY

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Querying Basics question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers