Hi,
First time poster. I have a string like 1:13:17:6:5854:0x00E37F06:0x00D1314C.
I need everything before the 3rd colon (1:13:17). I use
SUBSTR(g.column,1,7) AS myField.
But at times it comes in like 1:13:1:6:5854:0x00E37F06:0x00D1314C. Then it returns 1:13:1:
I need it as 1:13:1 if the : is in 7th position or 1:13:17,if the : is in the normal 8th.
Thanks,
pargo