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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:11:20+00:00 2026-06-09T00:11:20+00:00

I have a sql query which is to be converted to Linq Select b.title

  • 0

I have a sql query which is to be converted to Linq

Select b.title
from TableA as a
inner join TableB as b
on a.Email=b.Email
where a.Title<>b.Title 

the query which i have tried is

var query =from s in TableA
          join r in TableB
          on r.Email equals s.Email

but not able to replicate the where clause which may include many columns

My requirement is i need to compare the 2 tables on a primary key column and then get the other column values which do not match

  • 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-09T00:11:22+00:00Added an answer on June 9, 2026 at 12:11 am

    You need a “select” at the end of the query, and you need to get the inputs in the right order:

    var query = from s in TableA
                join r in TableB on s.Email equals r.Email
                where s.Title != r.Title
                select s.Title;
    

    For multiple columns, use an anonymous type:

    var query = from s in TableA
                join r in TableB 
                  on new { s.Email, s.Foo } equals new { r.Email, r.Foo }
                where s.Title != r.Title
                select s.Title;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a sql query which looks like this - NSString *createSQL = @SELECT
In my Java code I have embedded a SQL query which fetches data from
In my WPF app I have implemented LINQ to SQL query which populates an
I have the following SQL code: select val.PersonNo, val.event_time, clg.number_dialed from vicidial_agent_log val join
Have the following (non-straightforward) T-SQL query, which i'm trying to convert to LINQ (to
I have to perform the following SQL query: select answer_nbr, count(distinct user_nbr) from tpoll_answer
I have an SQL query from SQL Server which returns dates as a string
Right now I have this SQL query which is valid but always times out:
using php, i have a sql query which works fine, dateentry only has the
I have a SQL Server query which runs just fine -- until I add

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.