Skip to content

Commit

Permalink
Merge pull request #1411 from hiqedme/POC-863
Browse files Browse the repository at this point in the history
POC-863: corrected list
  • Loading branch information
Alfred-Mutai authored Oct 9, 2024
2 parents 361fce5 + 9831de1 commit 5dd166a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}
},
{
"table": "( select max(is_successful_phone_follow_up) as latest_phone_follow_up, person_id, follow_up_type from etl.pre_appointment_summary group by person_id )",
"table": "(SELECT MAX(is_successful_phone_follow_up) AS latest_phone_follow_up, person_id, follow_up_type FROM etl.pre_appointment_summary WHERE elastic_id IN (SELECT MAX(elastic_id) AS id FROM etl.pre_appointment_summary GROUP BY person_id) GROUP BY person_id)",
"alias": "s",
"join": {
"type": "LEFT",
Expand Down

0 comments on commit 5dd166a

Please sign in to comment.