Hi guys I am stuck up with the job design for the below sql queries. Please help:
select empno from emp_1 minus select empno from emp_2;
I need the emp_1 rejected empno into the target file
Job design
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 3
- Joined: Tue Mar 20, 2012 7:00 am
- Location: Chennai
Job design
Sahana
-
- Participant
- Posts: 597
- Joined: Fri Apr 29, 2005 6:19 am
- Location: Singapore
-
- Participant
- Posts: 72
- Joined: Wed Dec 12, 2007 2:29 am
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
-
- Participant
- Posts: 91
- Joined: Wed Apr 20, 2005 7:59 pm
- Location: U.S.
-
- Premium Member
- Posts: 376
- Joined: Sat Jan 07, 2012 12:25 pm
- Location: Piscataway
Just so I understand, you need all empno from emp_1 that are not present in emp_2, right?
Off the top of my head, I can think of a design with a lookup.
The primary link will have emp_1 data and the reference link will have emp_2. perform a lookup on empno.
The data rejected by the lookup would be the data not present in emp_2. You can capture this in a reject file and use it downstream.
Hope this helps.
Off the top of my head, I can think of a design with a lookup.
The primary link will have emp_1 data and the reference link will have emp_2. perform a lookup on empno.
The data rejected by the lookup would be the data not present in emp_2. You can capture this in a reject file and use it downstream.
Hope this helps.
Jerome
Data Integration Consultant at AWS
Connect With Me On LinkedIn
Life is really simple, but we insist on making it complicated.
Data Integration Consultant at AWS
Connect With Me On LinkedIn
Life is really simple, but we insist on making it complicated.