substring of values [message #537875] |
Mon, 02 January 2012 05:32 |
|
hi,
I have a reference number of application number which is sent to 3 different address as outward number
for example application number is intimated to the office , the employee and the treasury. this number is generated as follows
P/11/10/133
P/11/10/133A
P/11/10/133B
in my outward report when i run it all three numbers are getting listed.
i want only P/11/10/133 to be listed and ignore the rest of the two. i tried to use SUBSTR(INOUT_NO,9), but it reads only from the left gives me only the number ie 133, 133A and 133B. i tried rtrim and ltrim but it only clears the extra space. how do i ignore the other two despatch numbers
thanks in advance
|
|
|
|
|