Suppose There is a string
A.B....C.......D.........E........F In this string dots (.)
are not having fixed count in between of string. I want the
output to have string with one dot between. I.e.
A.B.C.D.E.F

Answer Posted / sandeep kumar

select replace(regexp_replace(replace
('A.B....C.......D.........E........F','.',' '),'( )
{2,}',' '),' ','.') from dual

Is This Answer Correct ?    1 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define commit, rollback and savepoint?

763


Can you inner join the same table?

708


What are pl sql procedures?

693


What is pl sql block in dbms?

705


What are the types of sql commands?

741






what are the differences between binary and varbinary? : Sql dba

716


Why are aggregate functions called so?

681


How many parts of a pl sql block are optional?

708


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

719


Explain the purpose of %type and %rowtype data types?

661


Explain unique key in sql.

735


what is union, minus and interact commands? : Sql dba

857


Is stored procedure faster than query?

730


Can we use two order by clause in query?

736


What is a data manipulation language?

743