Topic: Вычислительное поле
Имеется следующее вычислительное поле:
(case when strftime('%m',birth) = '01' then 566/31
when strftime('%m',birth) = '02' then 566/28
when strftime('%m',birth) = '03' then 566/31
when strftime('%m',birth) = '04' then 566/30
when strftime('%m',birth) = '05' then 566/31
when strftime('%m',birth) = '06' then 566/30
when strftime('%m',birth) = '07' then 566/31
when strftime('%m',birth) = '08' then 566/31
when strftime('%m',birth) = '09' then 566/30
when strftime('%m',birth) = '10' then 566/31
when strftime('%m',birth) = '11' then 566/30
when strftime('%m',birth) = '12' then 566/31
end)
Как быть если год високосный? Как написать выч. поле?