I am looking to build a filter component where
my search comes like `b_cycle_type = '1st Day Of The Month'`

and in the database `b_cycle_type` is stored as -1,0,1,2,3,4,5

How can I prepare postgres statement

I am trying:

```
SELECT "customers".* 
FROM   "customers" 
WHERE (CASE customers.b_cycle_type
         WHEN -1 THEN 'Last day of the month'
         WHEN  0 THEN 'Align with first'
         ELSE to_char(customers.b_cycle_type, '99th') || ' Day Of The Month'
       END = '27th Day Of The Month')

```

It's not returning any results.