I currently have my data stored in this format :
Word1 - Word2 - Number.I.Need.To.Extract.Separated.By.Periods - Word3 - Word4
What I would like to do is write an update statement that will set a column which I have just created to Number.I.Need.To.Extract.Separated.By.Periods
.
What is my best way to do this, or work like this?
I have tried to write it as follows :
UPDATE Table1
SET NewColumn =
(SELECT SUBSTRING(Column, 19, 14)
FROM Table1)
Which results in :
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. The statement has been terminated.
How can I fix this ?