Solved

Need suggestion regarding query

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This video shows how to recover a database from a user managed backup
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now