Added queries for earliest and latest observation dates.

This commit is contained in:
neviyn 2018-09-16 17:07:37 +01:00
parent 5fc9495b43
commit a83de7d688

View File

@ -50,4 +50,10 @@ public interface ObservationDao {
"AVG(teamwork) as teamwork, AVG(knowledge) as knowledge, date FROM observations GROUP BY date ORDER BY date")
@RegisterRowMapper(AverageStats.Mapper.class)
List<AverageStats> averageObservationScoresByDay();
@SqlQuery("SELECT MIN(date) FROM observations")
DateTime earliestEntryDate();
@SqlQuery("SELECT MAX(date) FROM observations")
DateTime latestEntryDate();
}