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

  • SEARCH
  • Home
  • 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

Simple question which I can't seem to find an answer of: I have two
Following from my last question which @Jon Skeet gave me a lot of help
I have a homework question which asks what the four functions of the Transport
I am using SQL Server 2008. I have an INSERT statement which inserts a
I have develop one app in which four box question are there. all question
I have a string like this: $string = 'one/two/three/four'; which I turn it into
This question relates to this question which I asked earlier this week. The answer
I was reading this question (which you do not have to read because I
I have a question which is described below: What problems would arise for testing
I have a question which I think involves conditional entropy in the field of

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.