Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, i have a table like this:
CodiceAAMS | NomeSala | rc_id_ticket | anti_data_emissione | Apertura | Chiusura | If(anti_data_emissione <= Chiusura - MakeTime(1) and anti_data_emissione >= Apertura + MakeTime(1), 'Alert', 'OK') | anti_importo |
EA170050445H | SALA BINGO TRASTEVERE | 131324235799841395 | 19/12/2018 10:51:50 | 19/12/2018 09:00:00 | 19/12/2018 23:00:00 | Alert | 605 |
I need to check if "anti_data_emissione" is between the interval [ Apertura,Apertura+1h] or [Chiusura-1h,Chiusura], in those cases my expression should give Alert, if "anti_data_emissione" is not in those interval, it has to say OK.
Thanks
May be try this?
If((anti_data_emissione>=Apertura and anti_data_emissione<=(Apertura+Hour(MakeTime(01)))) or (anti_data_emissione>=(Chiusura-Hour(MakeTime(01))) and anti_data_emissione<=Chiusura), 'Alert', 'OK')
Or
If((anti_data_emissione>=Apertura and anti_data_emissione<=(Apertura+1)) or (anti_data_emissione>=(Chiusura-1) and anti_data_emissione<=Chiusura), 'Alert', 'OK')
May be try this?
If((anti_data_emissione>=Apertura and anti_data_emissione<=(Apertura+Hour(MakeTime(01)))) or (anti_data_emissione>=(Chiusura-Hour(MakeTime(01))) and anti_data_emissione<=Chiusura), 'Alert', 'OK')
Or
If((anti_data_emissione>=Apertura and anti_data_emissione<=(Apertura+1)) or (anti_data_emissione>=(Chiusura-1) and anti_data_emissione<=Chiusura), 'Alert', 'OK')