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

Is inner join same as self join?

0 Answers  


HOW TO ADD PRIMARY KEY TO TABLE BY PL/SQL PROGRAM

3 Answers  


How does one use sql*loader to load images, sound clips and documents? : aql loader

0 Answers  


Which normal form is best?

0 Answers  


Can we create a trigger on view?

0 Answers  






What is the difference between a query and a report?

0 Answers  


How many subqueries can be nested in a statement?

0 Answers  


What is a database link?

3 Answers  


Why do we use procedures in pl sql?

0 Answers  


Can you alter start with clause?

1 Answers   TCS,


What is the purpose of design view?

0 Answers  


What is the use of sql trace?

0 Answers  


Categories