Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3219616
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:40:01+00:00 2026-05-17T15:40:01+00:00

Question: In which four clauses can a subquery be used? (Choose four.) A. in

  • 0

Question:
In which four clauses can a subquery be used? (Choose four.)

A. in the INTO clause of an INSERT statement

B. in the FROM clause of a SELECT statement

C. in the GROUP BY clause of a SELECT statement

D. in the WHERE clause of a SELECT statement

E. in the SET clause of an UPDATE statement

F. in the VALUES clause of an INSERT statement

Answer: B, D, E, F

But I think right answers are the following: A, B, D, E BUT NOT F. Is not it so???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:40:01+00:00Added an answer on May 17, 2026 at 3:40 pm

    Loot at! …I found something very important,which proves my assertion…

    Subqueries in Other DML Statements

    Subqueries can be used in DML statements such as INSERT, UPDATE, DELETE,

    and MERGE. Following are some examples of subqueries in DML

    statements.

    To update the salary of all employees to the maximum salary in the

    corresponding department (correlated subquery):

    UPDATE employees e1
    
    SET  salary = (SELECT MAX(salary)
    
         FROM  employees e2
    
         WHERE e1.department_id = e2.department_id);
    

    To delete the records of employees whose salary is below the average

    salary in the department (using a correlated subquery):

    DELETE FROM employees e
    
    WHERE salary < (SELECT AVG(salary) FROM employees
    
          WHERE  department_id = e.department_id);
    

    To insert records to a table using a subquery:

    INSERT INTO employee_archive
    
    SELECT * FROM employees;
    

    To specify a subquery in the VALUES clause of the INSERT statement:

    INSERT INTO departments
    
           (department_id, department_name)
    
    VALUES ((SELECT MAX(department_id)
    
             +10 FROM departments), 'EDP');
    

    You can also have a subquery in the INSERT, UPDATE, and DELETE statements in place of the table name. Here is an example:

    DELETE FROM
    
    (SELECT * FROM departments
    
     WHERE department_id < 20)
    
    WHERE department_id = 10;
    
    
    
    
    INSERT INTO (SELECT department_id, department_name
    
    FROM departments
    
    WHERE department_id < 20)
    
    VALUES (35, 'MARKETING');
    

    1 row created.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My question really has three related parts which I hope you can help me
I need to solve the following question which i can't get to work by
This question is related to another question which I asked yesterday! List all links
I know about this question: Which (third-party) debug visualizers for Visual Studio 2005/2008 do
I asked a question earlier which elicited some great responses. Here's the earlier question
This may be a painfully simply question for which I will be mocked but
This isn't a holy war, this isn't a question of which is better. What
I just want to clarify one thing. This is not a question on which
This question originally asked which is the best method for uploading files via SFTP
I asked a question earlier about which language to use for an AI prototype.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.