I have a field which contains a reference code which can be of different lengths:
1.2
1.2.3
1.2.3.4
2.1
2.1.3
2.3
5.3
4.2.3.1
(these are nested categories, i.e. 1.2.3 is part of 1.2)
I currently have a query which is grouping by this field, but would like to group by the first two (i.e. x.x) and three (x.x.x)
The values lengths are from x.x to x.x.x.x
Can i use the trim function to reduce x.x.x.x to x.x
Thanks for any help
Gingerboy
1.2
1.2.3
1.2.3.4
2.1
2.1.3
2.3
5.3
4.2.3.1
(these are nested categories, i.e. 1.2.3 is part of 1.2)
I currently have a query which is grouping by this field, but would like to group by the first two (i.e. x.x) and three (x.x.x)
The values lengths are from x.x to x.x.x.x
Can i use the trim function to reduce x.x.x.x to x.x
Thanks for any help
Gingerboy