SQL: split a string and write each character in a row (input 'pen' -> 'p','e','n')
Asked in the Technical Round 1 stage. Use the character_inputs table. Treat each PostgreSQL character as one character and preserve its original order.
input_id, position, and character.input_id, then position ascending.| Column | Type | Description |
|---|---|---|
| input_idPK | INT | Unique identifier for the input string |
| input_text | TEXT | String to split into individual characters |