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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:36:54+00:00 2026-05-11T16:36:54+00:00

Registered table has stucture regid userid var Registered = form r in dc.registered where

  • 0

Registered table has stucture

regid
userid

var Registered = form r in dc.registered  where ... // list contains userid as f.k.

I want user list who has registered.

so query like

var user = from u in dc.users where u.userid in // should contains in Register.userid

I want to learn more about linq where I can find best stuffs?

  • 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-11T16:36:54+00:00Added an answer on May 11, 2026 at 4:36 pm

    I suspect you want:

    var users = from u in dc.users 
                join r in Registered on u.userid equals r.userid
                select u;
    

    Note that this will be more efficient than an “Any” solution as it will build up the set of registered user IDs once (as a hashset) at which point the test for each user is quick.

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

Sidebar

Related Questions

I have a table of recent web guest who have registered. One of the
I would like to look up the database table for people whose registered date
I have two table User userID username email 1 abc abc@abc.com 2 def def@def.com
I have two tables users registered_members I want to confirm values from user table
My products table has_many :registered_products. I want to use something like products.find(:has_registered_products) where that
I have a users table, the user ID is public. But I want to
Steps: I want a registered user to be able to insert values into a
I have a table with all registered members , with columns like uid ,
this.DataWorkspace.UserData.users = is a WCF Ria table that exposes the list of registered users
If registered user jumps to login.jsp I wish to redirect him to youAreLoggedIn.jsp .

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.