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 8727095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:22:34+00:00 2026-06-13T08:22:34+00:00

1) Subquery is a query within a query and as such must start with

  • 0

1) Subquery is a query within a query and as such must start with a FROM clause and end with SELECT or GROUP BY clause. But I’m puzzled why don’t we also consider as a subquery those nested statements that only have a FROM clause ( thus they don’t end with SELECT or GROUP BY ).

The behavior of from c_2 in collection_2 is very similar to the behaviour of a subquery, since it enumerates the entire collection_2 for every c_1 element. Since their behaviours are remarkably similar, why aren’t statements such as from c_2 in collection_2 also considered as subqueries ( you could argue that a subquery returns a result, but same argument could also be said of from c_2 in collection_2, since it does get converted into a call to SelectMany )?

    var query = from c_1  in collection_1
                from c_2  in collection_2 
                select ...

thank you

  • 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-06-13T08:22:35+00:00Added an answer on June 13, 2026 at 8:22 am

    but same argument could also be said of from c_2 in collection_2, since it does get converted into a call to SelectMany

    Not really. That one call doesn’t get converted into SelectMany. It’s the fact that there are two from clauses, in combination (with just a single select) that causes it to be converted into a SelectMany call, so the whole thing is a single query in that case. If each from matched up with a single select then it would be a subquery.

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

Sidebar

Related Questions

Trying to use parameter from external query in subquery FROM clause. tbl1: | id
How do I specify the parent query field from within a subquery in MySQL?
My query is as follows, and contains a subquery within it: select count(distinct dNum)
Here's what I want to accomplish: Select all rows from table posts while also
How efficient is this query. It's selecting from the same table twice from within
How would you remove the subquery within [Count of Missing Attributes] from the following
First query gets the ID and registration time: SELECT t1.mid t1.regtime Subquery needs to
Query 1: SELECT cid, dl FROM chal WHERE cid IN ( SELECT cid FROM
I've got the following MySQL query / subquery: SELECT id, user_id, another_id, myvalue, created,
When I run this query SELECT CustomerId FROM Stocks.dbo.Suppliers It gives me this error.

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.