roedelfroe
Programmer
Hello to everybody.
Following problem:
Due to a error I got in a table duplicate and illogical entries.
It's a table with staff members witch normally should show something like this:
Storage_ID valid_from valid_to personnel_number ....
1 2006/07/07 2007/05/31 1234567
2 2007/06/01 9999/12/31 1234567
Of course this table has more columns ;-)
As you may see, every time there is a change for a Staff member (e.g. new departement), the old entry will be closed and a new created.
Due to a problem I've got now follwing situation:
A)
Storage_ID valid_from valid_to personnel_number ....
1 2006/07/07 2007/05/31 1234567
2 2007/06/01 9999/12/31 1234567
3 2007/06/01 9999/12/31 1234567
B)
Storage_ID valid_from valid_to personnel_number ....
1 2006/07/07 2007/05/31 1234567
2 2007/06/01 9999/12/31 1234567
3 2007/06/02 9999/12/31 1234567
I know there is only a slight difference between A) and B) but o.k.
Now my question:
Is it possible to find all personnel_numbers with this problems? If yes, how?
Further, is it possible to delete such entries "in one go"? Or are there any other suitable solutions?
Thanks for your help in advance!
Roland
Following problem:
Due to a error I got in a table duplicate and illogical entries.
It's a table with staff members witch normally should show something like this:
Storage_ID valid_from valid_to personnel_number ....
1 2006/07/07 2007/05/31 1234567
2 2007/06/01 9999/12/31 1234567
Of course this table has more columns ;-)
As you may see, every time there is a change for a Staff member (e.g. new departement), the old entry will be closed and a new created.
Due to a problem I've got now follwing situation:
A)
Storage_ID valid_from valid_to personnel_number ....
1 2006/07/07 2007/05/31 1234567
2 2007/06/01 9999/12/31 1234567
3 2007/06/01 9999/12/31 1234567
B)
Storage_ID valid_from valid_to personnel_number ....
1 2006/07/07 2007/05/31 1234567
2 2007/06/01 9999/12/31 1234567
3 2007/06/02 9999/12/31 1234567
I know there is only a slight difference between A) and B) but o.k.
Now my question:
Is it possible to find all personnel_numbers with this problems? If yes, how?
Further, is it possible to delete such entries "in one go"? Or are there any other suitable solutions?
Thanks for your help in advance!
Roland