I want to select a column value which is equal to a specific page item value and select the other values as null. The main table data is the following:
| id | first_numbers | second_numbers |
|---|---|---|
| 1 | 1112 | 2222 |
| 1 | 3434 | 1112 |
The value of first_numbers=1112 is equal to :p4_number=1112 page item so the expected result which I want is:
| id | first_numbers | second_numbers |
|---|---|---|
| 1 | 1112 | null |
| 1 | null | 1112 |