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

Is pl sql still used?

498


What is rownum and rowid?

555


What is lexical units in pl sql?

559


How to place comments in pl/sql?

592


What is compiled query?

503






- Types of triggers - View - Dcl - Procedures, packages, functions - Metasolve - Can use Dcl in triggers - package case study - Cursor and its types - triggers schedule - Wrap - Why we are using fetch and for in cursor. difference?

1372


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

523


Which is better join or inner query?

506


What does := mean in pl sql?

546


What is the difference between microsoft access and sql server?

516


Is natural join same as inner join?

495


what is an alias command? : Sql dba

536


Explain the working of foreign key?

533


what is the use of set statement in tsql? : Transact sql

517


how to delete an existing column in a table? : Sql dba

540