Skip to content

Commit

Permalink
add mid(max) in the date
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel090 committed Dec 2, 2024
1 parent 18a54cf commit 24f9bc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public EvaluatedPersonData evaluate(PersonDataDefinition definition, EvaluationC
"WHERE DATE(pp.date_completed) IS NULL\n" +
" AND pp.program IN ('MCH-Child Services', 'MCH-Mother Services')\n" +
"GROUP BY pp.patient_id\n" +
"HAVING MAX(DATE(pp.date_enrolled)) <= DATE(:endDate);";
"HAVING MID(MAX(DATE(pp.date_enrolled)), 1, 10) <= DATE(:endDate);";


SqlQueryBuilder queryBuilder = new SqlQueryBuilder();
Expand Down

0 comments on commit 24f9bc5

Please sign in to comment.