Hi every body
I've a little problem with my query, I can't figure it out. I've three tables:
Table A (EmployeNr, Date, Code)
Table B (EmployeNr, Date, Code) Which is an historic of Table A
Table C (BegD, EndD)
I can have all the records in table A that doesn't match in table B but not from the other side.
Table A Table B Table C
0001 0001 20031001
20031002 20031001 20031031
PR1 PR1
0001 0001
20031003 20031002
PR1 Mal
The result expected is:
0001
20031001
PR1
0001
20031002
PR1
I need to get all the records In table A which aren't in Table B
but also all the records in table B but matching with the period in table C.
Any suggestion will be greatly appreciated.
I've a little problem with my query, I can't figure it out. I've three tables:
Table A (EmployeNr, Date, Code)
Table B (EmployeNr, Date, Code) Which is an historic of Table A
Table C (BegD, EndD)
I can have all the records in table A that doesn't match in table B but not from the other side.
Table A Table B Table C
0001 0001 20031001
20031002 20031001 20031031
PR1 PR1
0001 0001
20031003 20031002
PR1 Mal
The result expected is:
0001
20031001
PR1
0001
20031002
PR1
I need to get all the records In table A which aren't in Table B
but also all the records in table B but matching with the period in table C.
Any suggestion will be greatly appreciated.