Skip to content
Question 22 of 40

Q.Which of the following clause cannot work with SELECT statement in MYSQL ? (A) FROM (B) INSERT INTO (C) WHERE (D) GROUP BY

Puducherry CbseCBSE Class XII Board 2024MCQ· 1mImportance★★★★★
55% · 22/40 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

INSERT INTO is a separate DML statement for adding rows, not a clause that works with SELECT. The answer is (B).

Understanding SQL Clauses vs. Statements

SQL distinguishes between statements (complete commands) and clauses (components that modify or extend a statement). A SELECT statement retrieves data and can be enhanced with various clauses that filter, group, or specify the source of that data.

The question asks which option cannot work with a SELECT statement. Let's examine each:

  1. FROM clause – Specifies the table(s) from which to retrieve data. Every practical SELECT needs a FROM clause (except trivial cases like SELECT 1;). This is fundamental to SELECT.

    SELECT name FROM students;
    
  2. WHERE clause – Filters rows based on conditions. This works seamlessly with SELECT to narrow down results.

    SELECT name FROM students WHERE age > 18;
    
  3. GROUP BY clause – Groups rows sharing common values, typically used with aggregate functions. This is a standard SELECT clause.

    SELECT department, COUNT(*) FROM employees GROUP BY department;
    
  4. INSERT INTO – This is not a clause; it's a completely separate DML statement used to add new rows to a table. You cannot "attach" INSERT INTO to a SELECT statement as you would a clause. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.