Posts by Paul Vernon • 99 points
1 post
-
-1
votes3
answers80
viewsA: Doubt with IBM DB2 rule
This would be a way to get the same result. with cte(regra_job) as (values CASE WHEN HOUR(CURRENT_TIME) < 6 then 4 WHEN HOUR(CURRENT_TIME) < 12 then 1 WHEN HOUR(CURRENT_TIME) < 17 then 2…