With the following SQL code you can check if the customer has visited the store this day.
1 2 3 4 5 6 7 |
SELECT 'The selected customer has returned today!' "im_messagw" from "pvlhseis" where "Kvdikospelath"=:cl AND cast('Now' as date)=cast("Hmeromhnia" as date) and "pvlhseis"."Hmeromhnia"<dateadd (second, -2,timestamp 'now') and "pvlhseis"."Kvdikospelath">1 |
It should be installed using the instructions here.