Hey, all!
I'm a bit stumped with a development question -
I am doing an inspection DB and there are a few different kinds of inspections (some with their own tables). Most of these types of inspections have a "re-inspect date" which will be used for alerts and reporting processes.
What I am trying to do is find the most elegant way to return the next inspection date for any given site. I started a query and got as far as having a row per site with the dates in 14 different inspection categories, (most of which are calculated - we do inspections after 2,5,10 years and every ten years after construction) but cannot figure out a way to pull the earliest date to a 15th column, NextInspectionDate.
It's quite likely I am looking at this the wrong way, but I'll be damned if I can figure out the right one!
Thanks for your help!
I'm a bit stumped with a development question -
I am doing an inspection DB and there are a few different kinds of inspections (some with their own tables). Most of these types of inspections have a "re-inspect date" which will be used for alerts and reporting processes.
What I am trying to do is find the most elegant way to return the next inspection date for any given site. I started a query and got as far as having a row per site with the dates in 14 different inspection categories, (most of which are calculated - we do inspections after 2,5,10 years and every ten years after construction) but cannot figure out a way to pull the earliest date to a 15th column, NextInspectionDate.
It's quite likely I am looking at this the wrong way, but I'll be damned if I can figure out the right one!
Thanks for your help!