Skip to content
Advertisement

Calculate amount of days worked by employee from 1 column to another with a function

This is my function I have so long, I need to be able to just call it with with an Employee number from the Employee table and it has to calculate the days between the 2 columns.

If there is a better way please let me know, this is what I have…

Advertisement

Answer

Presumably, you want something related to the employee being passed in. I would surmise:

Note that the function returns an integer not a date.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement