I am new to PostgreSQL and I want to split string of the following format:
0:1:19
with : as delimiter.  After split, I need to check if this split string contains either 0 or 1 as a whole number and select only those rows.
For example:
Table A
| Customer | role | 
|---|---|
| A | 0:1:2 | 
| B | 19 | 
| C | 2:1 | 
I want to select rows which satisfy the criteria of having whole numbers 0 or 1 in role.
Desired Output:
| Customer | role | 
|---|---|
| A | 0:1:2 | 
| C | 2:1 | 
 
     
    