Solved

Need suggestion regarding query

Posted on 2008-09-29
3
174 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Via a live example, show how to take different types of Oracle backups using RMAN.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

861 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