Skip to main content
Solved

Excluding records from the data

  • January 15, 2020
  • 5 replies
  • 68 views

Hi there,

 

I have Incident_no in the csv which I don't want to include into the calculation. Data is coming from the database. Is there any way that I exclude the records that contain incident number present in CSV? I tried with Feature joiner but it didn't give an option of not equal.

Best answer by takashi

I think the FeatureJointer can be used. Just use the records output from the UnjoinedLeft port, after joining the CSV features (entered into the Right port) to the DB records (entered into the Left port) using incident number as key.

Other than the FeatureJoiner, the DatabaseJoiner or the FeautreMerger could also be available.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

takashi
Celebrity
  • 7843 replies
  • January 15, 2020

Which option did you choose to configure the CSV writer feature type - automatic, manual, or dynamic?


  • Author
  • 30 replies
  • January 15, 2020

Which option did you choose to configure the CSV writer feature type - automatic, manual, or dynamic?

I used CSV reader to read the incident_no from the file. I am not using CSV writer feature


takashi
Celebrity
  • 7843 replies
  • January 15, 2020

It seems that I misunderstood the situation.

You are reading records from a database.

You have a CSV table which contains incident numbers, and you need to remove DB records whose incident number matches one of them read from the CSV.

Right?


  • Author
  • 30 replies
  • January 15, 2020

It seems that I misunderstood the situation.

You are reading records from a database.

You have a CSV table which contains incident numbers, and you need to remove DB records whose incident number matches one of them read from the CSV.

Right?

Yes, You are right.


takashi
Celebrity
  • 7843 replies
  • Best Answer
  • January 15, 2020

I think the FeatureJointer can be used. Just use the records output from the UnjoinedLeft port, after joining the CSV features (entered into the Right port) to the DB records (entered into the Left port) using incident number as key.

Other than the FeatureJoiner, the DatabaseJoiner or the FeautreMerger could also be available.