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 / anuradha

SELECT REGEXP_REPLACE (
REPLACE ('A.B....C.......D.........E........F', '.', ' '),
'( ){2,}',
'.')
FROM DUAL;

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string data type in sql?

714


what are the authentication modes in sql server? How can it be changed? : Sql dba

950


What is an inner join sql?

691


How do I find duplicates in two columns?

736


What is the maximum number of rows in sql table?

738






What are all the ddl commands?

850


what is the different between now() and current_date()? : Sql dba

695


What is self-join and what is the requirement of self-join?

831


What is bind variable in pl sql?

716


What are the types of subqueries?

758


What is use of trigger?

674


Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?

743


What does (+) mean in sql joins?

732


How you improve the performance of sql*loader? : aql loader

742


Can we use ddl statements in stored procedure sql server?

708