Solved

Need suggestion regarding query

Posted on 2008-09-29
3
173 Views
Last Modified: 2012-05-05
I have a column which is called "GPname which already has some data in it.

It is a varchar, Some of it has '-' in it. For eg: H-C corporation.
I need to make it as HC corporation

Please suggest the query for the table "corporations". Database is Oracle 10.0.
0
Comment
Question by:srikanthradix
  • 2
3 Comments
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 22601347
See if this helps:
(uses replace - http://www.techonthenet.com/oracle/functions/replace.php)
UPDATE corporations
SET GPname = Replace(GPname, '-', '')

Open in new window

0
 

Author Closing Comment

by:srikanthradix
ID: 31501397
Actually, I was looking in thesaurus.com for synonyms for "excellent" and i found this "chef-d'oeuvre". Thanks.
0
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 22601556
>>chef-d'oeuvre
I like that. :)

You are most welcome.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question