i have a word
***********hello********world******.
I require a o/p
**********hello world**********,
Need to delete the middle stars.
Answers were Sorted based on User's Feedback
Answer / chandan kumar
select (substr('***********hello********world******',1,instr
('***********hello********world******','o',1) )
||' '||substr('***********hello********world******',instr
('***********hello********world******','w',1) )
)
from dual
Is This Answer Correct ? | 10 Yes | 2 No |
Answer / ajit
select '******hello*****world*******' str,
rpad(lpad(replace('******hello*****world*******', '*'), 15, '*'), 20,'*') str1
from dual;
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / mkarthikeyan
select replace('word ***********hello********world******. I
require a o/p **********hello world**********','*','') from
dual;
Is This Answer Correct ? | 1 Yes | 9 No |
how to create a primary key with out creating an index?
Why we use triggers in mysql?
write a pl/sql function if enter a value=0 then output value=1 and vise verse with out using if and case statements.
What is a sql*loader control file?
What are tuples in sql?
what are the methods using performance tunning in sql and pl/sql
What does data normalization mean?
Give the order of sql select?
How to add, remove, modify users using sql?
Which data type is a composite type?
Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?
Differentiate between % rowtype and type record.