Hi, I have a query, and the results are:
Facility_Name Audit_Date Audit_Due_Date
Facility1 01-Jan-2012 01-Apr-2012
Facility1 05-Apr-2012 05-Jul-2012
So, an audit is due every 3 months, but for Facility1, the 2nd Audit was due on 01-Apr, but didn't happen until 05-Apr, so therefore it was 4 days overdue.
This is what I want to calculate, but I just can't figure out how to do it!
Any help much appreciated.