Solved

Need suggestion regarding query

Posted on 2008-09-29
3
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how would you excute a sproc on another database on the fly 9 29
SQL to JSON 14 39
SQL Syntax 6 41
T-SQL: Need Group By to use "fuzzy logic"?? 3 23
Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

733 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