![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
But my problem is that even if that character is processed and stored correctly in the database it would still be stored as a 2 byte character. In that case how do I make the following command, which works on the basis of no. of bytes, work correctly: nvl(rpad(UPPER(substr(nvl( substr(column1,1,instr(column1,'(')-1),column1), 1,24)),24),' ') I don't see why the statement shouldn't work. substr and instr work on *characters* not bytes: |
#22
| |||
| |||
|
#23
| |||
| |||
|
#24
| |||
| |||
|
#25
| |||
| |||
|
#26
| |||
| |||
|
|
nvl(rpad(UPPER(substr(nvl( substr(column1,1,instr(column1,'(')-1),column1), 1,24)),24),' ') Not sure as to why is it not working but when I run this command on the data "Finance ¿ Fulfillment Factory" the result returned is: "FINANCE ¿ FULFILLMENT F" whereas the correct result that I am looking for is "FINANCE ¿ FULFILLMENT FA". |
#27
| |||
| |||
|
|
nvl(rpad(UPPER(substr(nvl( substr(column1,1,instr(column1,'(')-1),column1), 1,24)),24),' ') Not sure as to why is it not working but when I run this command on the data "Finance ¿ Fulfillment Factory" the result returned is: "FINANCE ¿ FULFILLMENT F" whereas the correct result that I am looking for is "FINANCE ¿ FULFILLMENT FA". |
#28
| |||
| |||
|
|
nvl(rpad(UPPER(substr(nvl( substr(column1,1,instr(column1,'(')-1),column1), 1,24)),24),' ') Not sure as to why is it not working but when I run this command on the data "Finance ¿ Fulfillment Factory" the result returned is: "FINANCE ¿ FULFILLMENT F" whereas the correct result that I am looking for is "FINANCE ¿ FULFILLMENT FA". |
#29
| |||
| |||
|
|
nvl(rpad(UPPER(substr(nvl( substr(column1,1,instr(column1,'(')-1),column1), 1,24)),24),' ') Not sure as to why is it not working but when I run this command on the data "Finance ¿ Fulfillment Factory" the result returned is: "FINANCE ¿ FULFILLMENT F" whereas the correct result that I am looking for is "FINANCE ¿ FULFILLMENT FA". |
![]() |
| Thread Tools | |
| Display Modes | |
| |