Ulrich,
I got it to work as this. Thanks for your help.
SELECT ASKME_CREAT_TM,
cast(ASKME_CREAT_TM as time) ,
case when ASKME_CREAT_TM between cast('08:00:00' as time) and cast('12:00:00' as time) then 'AM' else 'unkown' end,
↧