I have the following table:
| id | name |
----------------------------------
| 1 | 236 SRTD - Something 1 |
----------------------------------
| 2 | 236 SRTD - Something 2 |
----------------------------------
| 3 | 236 SRTD - Something 3 |
----------------------------------
| 4 | 387 SRTD - Something 1 |
from that table I would like to construct another similar view but that looks like the following:
| id | SRTD | name |
-------------------------------------------
| 1 | 236 | 236 SRTD - Something 1 |
-------------------------------------------
| 2 | 236 | 236 SRTD - Something 2 |
-------------------------------------------
| 3 | 236 | 236 SRTD - Something 3 |
-------------------------------------------
| 4 | 387 | 387 SRTD - Something 1 |
How can I modify the name column, obtain the SRTD number, and then create another column that contains that value.
For SQL Server: