This topic is locked

Table event ( how i can get values from another table to calculate value)

11/27/2021 10:12:29 AM
ASPRunner.NET General questions
M
Mansour author

i need help to solve this case

i have to table in database
first on SAL
second one Vacations

SAL table have below fields

  • basic salary.
  • housing allownce.
  • Empno

vacations table have below feilds

  • sdate
  • edate
  • ndays
  • value

i need to do below
insert sdate,edate,ndays when i click add/save the system will search in SAL table and calculate Value as below
value = basic salary + housing allownce
where vacation.Empno = SAL.Empno

Any body can help me to do this?