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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:15:30+00:00 2026-05-18T08:15:30+00:00

Briefly described, I have 2 tables that have ‘equivalent’ rows in each other. The

  • 0

Briefly described, I have 2 tables that have ‘equivalent’ rows in each other. The equivalencies are maintained in a 3rd Mapping table (which maps ID A to ID B). In a view I want to create a consolidated view that shows:

  • All entries that exist in Table A but have no equivalent in Table B (1 row each)
  • All entries that exist in Table B but have no equivalent in Table A (1 row each)
  • All entries that exist in both Table A and B (single row per A/B match)

It’s easier to explain graphically…

I have the following scenario (shown in picture linked below):

Current Scenarioalt text

I’m sure this is much simpler than it seems – I’ve been chewing on this for a little while and can’t get it workable.

  • 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-18T08:15:30+00:00Added an answer on May 18, 2026 at 8:15 am

    How about just

    select a.ID as A_ID, a.Desc as A_Desc, b.ID as B_ID, b.Desc as B_DESC
    from Table_A as a left outer join Mapping_Table as m on a.ID = m.A_ID
    full outer join Table_B as b on m.B_ID = b.ID
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to serialize libkdtree++ in my program, the tree structures are briefly described
i'm trying to do something that is described briefly on the next link: link
I have briefly described the working of my application to under stand my Question.
Here briefly are the business requirements. I have an entity called PricingSchedule that represents
First I want to describe my situation briefly. I have two classes, one MainClass
The algorithm is described in this paper: Thread Scheduling for Multiprogrammed Multiprocessors . Briefly,
Briefly, I am trying to write a routine that reads comma separated values from
I've only been using SSIS briefly, but I find that my complaints are numerous.
I have a Panel which is a contentPane of a JDialog . That Panel
We use Team Foundation Server and have numerous ASP.NET Web Application Projects. Each 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.