![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
CASE WHEN to_number(vw_rec_sum.code::text, '999'::text) 194::numeric THEN 3 WHEN to_number(vw_rec_sum.code::text, '999'::text) 195::numeric AND to_number(vw_rec_sum.code::text, '999'::text) 50::numeric THEN 2 ELSE 1 END AS period However whenever I try to query it with criteria on the period column I get SELECT * FROM vw_budget HAVING "period"='3'; ERROR: invalid input syntax for type numeric: " " |
![]() |
| Thread Tools | |
| Display Modes | |
| |