Hi Adam
With dates you can use TODAY as a date value, for example, this finds passwords expiring in the next 7 days.
SELECT PASSWORD_EXPIRE_DATE>TODAY AND PASSWORD_EXPIRE_DATE<=TODAY+7
There is no such keyword for TIME.
Also, calculations (additions, subtractions) are impossible, except for the example given.
Look at SCKRCARL for samples how to build reports with date or time ranges:
CKALFSTA - statistics per hour
CKALFSTB - statistics per shift
CKALFSTC - statistics per weekday
------------------------------
Rob van Hoboken
------------------------------