Hi all (CE9),
I want to query the InfoStore and require the result to be ordered by SI_NAME. However, I only want it to take into account the 2nd character in the name.
This query :
SELECT SI_ID, SI_NAME FROM CI_INFOOBJECTS ORDER BY SI_NAME
Returns something like the following :
SI_ID SI_NAME
----------------------------
1 RA1
2 TB2
3 WA3
I want :
SI_ID SI_NAME
----------------------------
1 RA1
3 WA3
2 TB2
^ this character to be the sort order.
I've tried things like :
SELECT SI_ID, SI_NAME FROM CI_INFOOBJECTS ORDER BY mid(SI_NAME, 1, 1)
But this is not a 'valid query' according to the CSP Query Builder.
Any ideas folks?!?!?!
Thanks in advance!
Rob
Stay Blue, Bob. x
I want to query the InfoStore and require the result to be ordered by SI_NAME. However, I only want it to take into account the 2nd character in the name.
This query :
SELECT SI_ID, SI_NAME FROM CI_INFOOBJECTS ORDER BY SI_NAME
Returns something like the following :
SI_ID SI_NAME
----------------------------
1 RA1
2 TB2
3 WA3
I want :
SI_ID SI_NAME
----------------------------
1 RA1
3 WA3
2 TB2
^ this character to be the sort order.
I've tried things like :
SELECT SI_ID, SI_NAME FROM CI_INFOOBJECTS ORDER BY mid(SI_NAME, 1, 1)
But this is not a 'valid query' according to the CSP Query Builder.
Any ideas folks?!?!?!
Thanks in advance!
Rob
Stay Blue, Bob. x