I am trying to sort a nvarchar field type with numbers/id's
Field Name : invoice #
Eg Data: 1132 Old DAY QB, 18213, 18214, 18215.....3770, 3771,37702
1)I wan't to first trim out the charcters on right and keep just the numbers
2) Then I would like to convert this in to a numeric field and sort it in ascending order
I came accross a similar thread:
help requested with sorting by a nvarchar field in CR8
thread766-857486
But the problem is I am using CR9 and for some strange reason I cannot see the Option To Create A SQL Expression...I was wondering if there is an option to enable it..??
Please Advice..
Thanks.
Field Name : invoice #
Eg Data: 1132 Old DAY QB, 18213, 18214, 18215.....3770, 3771,37702
1)I wan't to first trim out the charcters on right and keep just the numbers
2) Then I would like to convert this in to a numeric field and sort it in ascending order
I came accross a similar thread:
help requested with sorting by a nvarchar field in CR8
thread766-857486
But the problem is I am using CR9 and for some strange reason I cannot see the Option To Create A SQL Expression...I was wondering if there is an option to enable it..??
Please Advice..
Thanks.