hI ALL,
My data looks something like this:
column name: col_one varchar2(100)
#2-6",8" CRUDE PIPELINE
#5-10 Evaluate
NT Server
MYPRODUCT
#5-11 TANK Pipe
#9-3" PRODUCT CRUDE
What I want to output is these values:
#5-10 Evaluate
NT Server
#5-11 TANK Pipe
Now my script looks something like this:
select DESCRIPTN
from table_b
where (DESCRIPTN like upper(substr(descriptn,1,1))||lower(substr(descriptn,2,1))||'%'
or descriptn like lower(substr(descriptn,1,1))||upper(substr(descriptn,2,1))||'%'
or descriptn like lower(substr(descriptn,1,2))||'%')
and upper(descriptn)=upper(descriptn);
The output I'm getting is this:
#2-6",8" CRUDE PIPELINE
#5-10 Evaluate
#5-11 TANK Pipe
#9-3" PRODUCT CRUDE
What am I doing wrong hear?
Thank you guys!
My data looks something like this:
column name: col_one varchar2(100)
#2-6",8" CRUDE PIPELINE
#5-10 Evaluate
NT Server
MYPRODUCT
#5-11 TANK Pipe
#9-3" PRODUCT CRUDE
What I want to output is these values:
#5-10 Evaluate
NT Server
#5-11 TANK Pipe
Now my script looks something like this:
select DESCRIPTN
from table_b
where (DESCRIPTN like upper(substr(descriptn,1,1))||lower(substr(descriptn,2,1))||'%'
or descriptn like lower(substr(descriptn,1,1))||upper(substr(descriptn,2,1))||'%'
or descriptn like lower(substr(descriptn,1,2))||'%')
and upper(descriptn)=upper(descriptn);
The output I'm getting is this:
#2-6",8" CRUDE PIPELINE
#5-10 Evaluate
#5-11 TANK Pipe
#9-3" PRODUCT CRUDE
What am I doing wrong hear?
Thank you guys!