Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
| DT1 | Time of DT1 | Variable (p_time = '10:30') | Expected Result | Calculation =If((time(DT1,'hh:mm') <= p_time), '1','0') |
|---|---|---|---|---|
| 27/05/2013 08:00:00 | 08:00 | 10:30 | 1 | 0 |
| 24/05/2013 08:30:00 | 08:30 | 10:30 | 1 | 0 |
| 24/05/2013 09:00:00 | 09:00 | 10:30 | 1 | 0 |
| 26/05/2013 10:40:00 | 10:40 | 10:30 | 0 | 0 |
| 26/05/2013 11:00:00 | 11:00 | 10:30 | 0 | 0 |
Hi dipak.nit,
1. Change your variable: p_time = Interval('10:00','hh:mm')
2. Compare expression should be like this
=If(Interval#(Time(DT1,'hh:mm'),'hh:mm') <= p_time, '1','0')
Regards,
Sokkorn
Hi dipak.nit,
1. Change your variable: p_time = Interval('10:00','hh:mm')
2. Compare expression should be like this
=If(Interval#(Time(DT1,'hh:mm'),'hh:mm') <= p_time, '1','0')
Regards,
Sokkorn
Hi Sokkorn,
It is working now.
Thank you.
Hi b. Sokkorn,
It's also solve my problem (y) ![]()
Thank you.