I
ISSB Programmer
I am working on a report that uses the following column: "Number of teachers
currently in same school". In my database I have a table that tracks the
schools that each teacher worked at and the start and end dates that they
worked there. To find out if a teacher is currently at the same school I
created the following 5 queries:
Query 1: Using the Min function, find the first start date for each teacher.
Query 2: Query query 1 to find out what school each teacher was working at
on their first start date.
Query 3: Find the school that each teacher is working at currently. This is
determined by a Null end date.
Query 4: Compare Query 2 and Query 3 to find which teachers are still at the
same school.
Naturally I find this very inefficient. This is for only one column in the
report. I have 7 reports to do so far. Is this the best way to do it? Thanks.
currently in same school". In my database I have a table that tracks the
schools that each teacher worked at and the start and end dates that they
worked there. To find out if a teacher is currently at the same school I
created the following 5 queries:
Query 1: Using the Min function, find the first start date for each teacher.
Query 2: Query query 1 to find out what school each teacher was working at
on their first start date.
Query 3: Find the school that each teacher is working at currently. This is
determined by a Null end date.
Query 4: Compare Query 2 and Query 3 to find which teachers are still at the
same school.
Naturally I find this very inefficient. This is for only one column in the
report. I have 7 reports to do so far. Is this the best way to do it? Thanks.