SQL Regex for an Address -
i have address field populated like:
flat 1
flat 2
flat 2a
flat 3
as can see, entries numbers , others contain numbers , letters. sort them via numbers, letters - is, i'd ordered above.
currently this:
func1(regexp_substr(demiseunit, '^[0-9]+')) func2(regexp_substr(demiseunit, '[0-9]+$'))
however, unfortunately causes flat 2a
go bottom of list. appreciated.
if have "flat ##aa" can
order val(replace(demiseunit,"flat ","")), demiseunit
Comments
Post a Comment