Hi,
I am using MS SQL 8.0. I have created a view using two tables both fields are date fields. One of the fields is start date ( always the same) the other field is changedate ( used when staff change position). I need to filter out all changedates except for the most recent. Then I need to compare startdate and changedate to get the datecoparrison.( I know which should be the most recent but I CYA) next I have field named changed reason.
If changereason = "NEW Employee" then Grace = 14days + datecomparrison
else if changereason = " Updated position" then Grace = 7days + datecomparrison.
Can anyone help with the coding,
I am using MS SQL 8.0. I have created a view using two tables both fields are date fields. One of the fields is start date ( always the same) the other field is changedate ( used when staff change position). I need to filter out all changedates except for the most recent. Then I need to compare startdate and changedate to get the datecoparrison.( I know which should be the most recent but I CYA) next I have field named changed reason.
If changereason = "NEW Employee" then Grace = 14days + datecomparrison
else if changereason = " Updated position" then Grace = 7days + datecomparrison.
Can anyone help with the coding,