SQL, split string and write in a rows (input 'pen' -> one row per character)
Asked in the technical round 1 stage. Use the string_inputs table and return one row for each character in every non-empty, non-NULL input string.
input_id, position, and characterinput_id, then position| Column | Type | Description |
|---|---|---|
| input_idPK | INT | Unique identifier for the input string |
| input_text | TEXT | String to split into individual characters |