Quote:
|
When importing info I get two separate sets of data
|
OK.
Quote:
|
One months data gets pulled in with emp no with o's in it and the next month no 0's this creates a duplicate employees.
|
This month: there are "o" (a letter "o") in these data
Next month: there are "0" (number zero) in these data
How do they make
duplicates? I presume that "this month's o" is, actually, "this month's zero", right?
Quote:
|
The one thing thats constant is their id no's.
|
If you say so.
I don't see relation between this table and "sample" data you posted.
You never mentioned PERID; what are MINID and MINEMP and MAXID and MAXEMP doing here? What do these MIN and MAX mean? I see that MAXEMP = '0' || MINEMP. That would probably be "this month" vs. "next month".
If that sample table is what you currently have, what would you want to get as a result? Someone smarter than me will probably know what to do, but I don't. Perhaps, if you could provide test case (which includes CREATE TABLE and INSERT INTO several sample records that represent your current situation, as well as required output) it would be easier to assist.