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



i have a word ***********hello********world******. I require a o/p **********hello world*********..

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

i have a word ***********hello********world******. I require a o/p **********hello world*********..

Answer / ajit

select '******hello*****world*******' str,
rpad(lpad(replace('******hello*****world*******', '*'), 15, '*'), 20,'*') str1
from dual;

Is This Answer Correct ?    1 Yes 1 No

i have a word ***********hello********world******. I require a o/p **********hello world*********..

Answer / mkarthikeyan

select replace('word ***********hello********world******. I
require a o/p **********hello world**********','*','') from
dual;

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More SQL PLSQL Interview Questions

Can we call procedure in select statement?

0 Answers  


What do you mean by stored procedures?

0 Answers  


What are the limitations of sql express?

0 Answers  


Can we perform dml on view?

0 Answers  


What is difference between hql and native sql?

0 Answers  






How can I make sql query run faster?

0 Answers  


Does a join table need a primary key?

0 Answers  


What is a temp table?

0 Answers  


what is bcp? When is it used?

0 Answers  


how to enter numeric values as hex numbers? : Sql dba

0 Answers  


Can we rename a column in the output of sql query?

0 Answers  


Where is pl sql used?

0 Answers  


Categories