This is a report for Payroll.
After doing a LOT of work on various tables, doing SUM and Left join, I have achieved the following result:
ID-----NAME------POS-ID--JOB-DESC--------EARNINGS---------EMP-SUM
01------DJ------------02--------READER----------100---------------10
01------DJ------------02--------WRITER-----------122---------------10
02------JM------------03--------CALLER-----------200---------------50
03------ND------------05--------GUARD-----------150----------------25
Sum of Earning comes from a separate table, and its added by Group BY POS-ID.
EMP-SUM comes from a separate table, and its added by Group BY ID. It has no other criteria.
As you can see, EMP-SUM in 2nd row is being repeated for ID-01.
Is there some way I can get rid of the repeated EMP-SUM.
If all this sounds very bizarre, please ask me more questions about this.
I am very confused and I will be more than happy to assist you find a solution for me :)
Thanks!
Dipali
After doing a LOT of work on various tables, doing SUM and Left join, I have achieved the following result:
ID-----NAME------POS-ID--JOB-DESC--------EARNINGS---------EMP-SUM
01------DJ------------02--------READER----------100---------------10
01------DJ------------02--------WRITER-----------122---------------10
02------JM------------03--------CALLER-----------200---------------50
03------ND------------05--------GUARD-----------150----------------25
Sum of Earning comes from a separate table, and its added by Group BY POS-ID.
EMP-SUM comes from a separate table, and its added by Group BY ID. It has no other criteria.
As you can see, EMP-SUM in 2nd row is being repeated for ID-01.
Is there some way I can get rid of the repeated EMP-SUM.
If all this sounds very bizarre, please ask me more questions about this.
I am very confused and I will be more than happy to assist you find a solution for me :)
Thanks!
Dipali
Comment