Use Charindex() to find the position of the space and then use Left() to find everything up to the space.
Select Left(PostCode, CharIndex(' ', PostCode) - 1) As PostCodeArea
From MyTable
Group By Left(PostCode, CharIndex(' ', PostCode) - 1)
|
Results 1 to 3 of 3
Threaded View
|
|
|
|