Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
ihave data base contain from table
employee table
  empno
  ename
  val_sal

adittion work
  empno
  adwork

comm
  empno
  comm

bunish
   empno
   bun_val

salary
  empno
  sal
iwant while add value off(+adwork,+comm,-bun_val,+sal)in my data base the val_sal
contain (+adwork,+comm,-bun_val,+sal) in salary of employee automatical iuse access data base how iwork that
i can't use one table becuse iuse different user
thank
Posted
Updated 24-Nov-12 3:13am
v2

1 solution

Your question is confusing and not very well explained, however, assuming that what you want is this:
1) To record the basic (normal) salary for an employee
2) Record extra income for additional work
3) Record expenses to be removed from total salary (bunish?)
4) Record extra income for 'comm' work, (whatever that is, commission?)

Then you would be better of having a table for employees and a single table for income items. Each income item would have a category (from a third table), 'addition_work', 'bunish', 'comm', 'salary' etc.
Your total income would then be a query not a table using SUM(field from income items table) and using Group By for various reporting effects.
A period (e.g. month, week) etc. would seem sensible also.

Then have a look at this[^].

M
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900