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 |
What is mutating table?
Does sql full backup truncate logs?
Do you understand the meaning of exception handling?
What is primary key and unique key?
What is difference between procedure and trigger?
What are operators available in sql?
what are myisam tables? : Sql dba
how to remove records from table? no name 1 a 2 b 1 a 2 b 3 c
How to call DDL statements from pl/sql?
Does sql use python?
I have a Employee table with columns ename,eid,salary,deptno. How to retrieve sum of salary for each deptno?
Explain exception handling in pl/sql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)