@Query(value="SELECT * from reminder where id in (select max(id) from reminder where platform = ?1 group by account_id )",nativeQuery=true)
@Query(value="SELECT * from reminder where id in (select max(id) from reminder where platform = ?1 group by account_id )",nativeQuery=true)
List<Reminder>findAllDistinct(Stringplatform);
List<Reminder>findAllDistinct(Stringplatform);
@Query(value="SELECT * from reminder where id in (select max(id) from reminder where platform = ?1 group by account_id ) and status = false",nativeQuery=true)