Select current_timestamp(0) cts,
cast(cts as time) as ctime,
case when ctime between cast('08:00:00' as time) and cast('12:00:00' as time) then 'AM' else 'unkown' end
;
↧