How would you solve a Python coding question involving palindromes?
Translate the palindrome check into PostgreSQL for the provided input and label tables. Ignore case and non-alphanumeric characters when determining whether a value is a palindrome. Exclude NULL and empty normalized values.
input_id, original_text, label_name, and normalized_text.input_id ascending.| Column | Type | Description |
|---|---|---|
| input_idPK | INT | Unique identifier for the input string |
| text_value | TEXT | Original text to evaluate |
| label_id | INT | Optional reference to an input label |
| Column | Type | Description |
|---|---|---|
| label_idPK | INT | Unique identifier for a label |
| label_name | VARCHAR(100) | Descriptive label assigned to an input |