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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:27:26+00:00 2026-05-11T14:27:26+00:00

I have two sets of data which I need to join, but there is

  • 0

I have two sets of data which I need to join, but there is an added problem because the data quality is not great.

The two data sets are Calls (phone calls) and Communications (records created about phone calls). They have ID’s called call_id and comm_id respectively. The communication records also have call_ids to perform the join. The problem is that the data collection system was not working correctly to start with and I have a large number of communication which I cannot match to a specific call. Not all calls will have generated a communication.

For each day I need to create a joined list to perform some analysis on. The problem is that due to the lack of some of the links I get 3 distinct row types:

  • Just Calls,
  • Just Comms,
  • Linked comm and call.

What I want to do is for every row which is a ‘Just Comm’ row on a given date, I should remove a ‘Just Call’ row for the same date. I don’t need any values from the calls, I just need to know the call happened. If I do this I will end up with the correct number of rows because all the ‘just comms’ will have removed a ‘just call’ row which as far as I need to know was the call which created the comm.

My problem is how to do this in SSIS. I have got to the point where I have my data set which contains all the data I need and is a mixture of the 3 row types I mentioned above. How would you recommend I go through the process of deleting ‘Just Call’ rows?

  • 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. 2026-05-11T14:27:27+00:00Added an answer on May 11, 2026 at 2:27 pm

    I’m not sure I understood your problem completely, but maybe you could try with a FULL OUTER JOIN:

    SELECT   CL.ID AS CALL_ID,   CL.DATE AS CALL_DATE,   CM.ID AS COMM_ID,   CM.DATE AS COMM_DATE FROM   CALLS CL   FULL JOIN   COMMUNICATIONS CM ON     (CM.CALL_ID = CALL.ID) WHERE   (CL.ID IS NULL) OR   (CM.ID IS NULL) 

    This will return all the rows that contain either a NULL Call ID or Communication ID (i.e. the ones with a ‘broken link’).

    You can then use this as a view (let’s call it VCALLS_COMMS) and join it to itself to find rows with a matching date:

    SELECT    VCC1.CALL_ID,   VCC2.CALL_ID FROM   VCALLS_COMMS VCC1   JOIN   VCALL_COMMS VCC2 ON     (VCC2.COMM_DATE = VCC1.CALL_DATE) 

    Maybe it’s not exactly what you’re looking for, hope it helps.

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

Sidebar

Related Questions

I have a two tables (actually sets of tables) which may need to be
I have two sets of data, (Ax, Ay; Bx, By). I'd like to plot
I have two types of data sets. Both are in same size. One contains
I am starting a project in which I need to get two sets of
I have a set of data on which I need to perform a topological
I have two large data sets and I am attempting to reformat the older
my current code is below. What I have is two sets of data phi
I have a regular expression that I use to grab data between two sets
I have problems implementing a custom DependencyObject: I need a converter which sets or
I need to take two sets of data and produce one set of pairs(tuples)

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.