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 / oddabout.com

SELECT replace(replace(replace('A.B....C.......D.........E........F','.',' @'),'@ ',''),' @','.') FROM dual

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does asenumerable execute the query?

605


How do you declare a user-defined exception?

530


What if we write return in procedure?

788


what are the performance and scalability characteristics of mysql? : Sql dba

532


How to use sql statements in pl/sql?

580






What is on delete set null?

570


What is nvl?

615


define join and explain different type of joins? : Sql dba

546


What does a pl/sql package consist of?

518


what is a table called, if it has neither cluster nor non-cluster index? What is it used for? : Sql dba

524


what are the differences between char and varchar? : Sql dba

529


What is memory optimized table?

577


How to make a copy values from one column to another in sql?

576


What is difference between joins and union?

533


Name the operator which is used in the query for pattern matching?

505