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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:19:08+00:00 2026-06-13T21:19:08+00:00

So heres my case i got 2 tables one with Languages one with Resources

  • 0

So heres my case i got 2 tables one with Languages one with Resources and what i want to do is to find all Resources that is missing on each language…

The default language i wanna go after is languageId = 1

Table “Resources”

Id    Key    Value    LanguageId
1     k1     test     1
2     k1     test     2
3     k1     test     3

Table “Languages”

Id   
1
2
3
4
5
6
7

language contains about 10 rows of languages.

Now what i wanna do is to take out those resources that dosent exists
(ex results)

Key   Value   LanguageId
k1    test    1
k1    test    2
k1    test    3
k1    null    4
k1    null    5
k1    null    6
k1    null    7

Any suggestions how to solve this problem, ive tried with GroupJoin And SelectMany but no good results.

  • 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-13T21:19:09+00:00Added an answer on June 13, 2026 at 9:19 pm

    It feels to me like actually your structure isn’t quite right yet: you should have a third table of ResourceKeys, with k1 in. That way when you add a resource key, the first thing you add is an entry in ResourceKeys, at which point all languages will be missing that translation. Otherwise you have no way of representing “a resource with no translations” which is a meaningful concept IMO.

    You can then cross-join Language and ResourceKeys, and group join against Resources:

    var query = from language in Languages
                from resourceKey in ResourceKeys
                join resource in Resources
                     on new { LangId = language.Id, ResId = resourceKey.Id }
                     equals new { LangId = resource.LanguageId,
                                  ResId = resource.Key }
                     into values
                select new { LangId = language.Id,
                             ResId = resourceKey.Id,
                             Value = values.SingleOrDefault() };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, I've got some history tables that have a begin date and an end
I've got a database with one field that contains a comma delimited list that
Here is the case of my Netbeans debugging question: I got a for loop
I'm just going to throw all my code in here in case there's something
Here's the use case: A user clicks on a link that opens a window
here the sample case.. i want to display banner randomly by percentage based on
This should be an easy one, looks like I got myself too confused. I
Hey all. I've got a new app up and running on a new ubuntu
Here's what I'm trying to accomplish: I've got two tables, call them first and
I have a database named SCORPADData and it's got two tables, Parts and Failure_Rates.

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.