Urgent.What is the best way to insert '-'.

Hi all, I have a table with a column col1 and these test values:

col1
ABC MANILA
ABC CEBU
ABC DAVAO

The desired output must be
col1_formatted
ABC - MANILA
ABC - CEBU
ABC - DAVAO

I use this code:
SELECT    SUBSTR (col1, 1, INSTR (col1, ' '))
       || '-'
       || SUBSTR (col1, INSTR (col1, ' '))
  FROM test
I just want to know if there is a better way. Help, please. Thank you

Hello

Try this and let us know.

SELECT    replace(col1,' ',' - ')
  FROM test

See you soon
Kanchana

Tags: Database

Similar Questions

  • Using CS3, I want to insert a picture on the active page of my site folder. What is the best way to do it?

    Using CS3, I want to insert a picture on the active page of my site folder. What is the best way to do it?

    The current folder simply reflects what you have already inserted in your site.

    Save images to your Site Local DW folder from your graphical application or move/copy using the file manager of your operating system (Mac Finder or Win Explorer).

    In DW, use the Insert menu to insert images directly into your web page.

    Nancy O.

  • What is the best way to consolidate e-mail messages in the e-mail program, before deleting?

    I have an iMac with a capacity to 1.11 - 679,49 GB available. With the software updated.

    Model name: I

    I have emails out of my different accounts in a "random" folder, but is not free up space. If I move an email in "Archives" and then it always remains in the e-mail account, apparently duplicate email in two places. "

    ERGO: the question is...

    What is the best way to consolidate e-mail messages in the e-mail program, before deleting?

    (I hope I've inserted which may be useful, but I'm not sure about that.)

    Thank you

    ilenefrombaltimore

    Archive messages or move them to some other local mailboxes or mailboxes on the server. Don't know what you are trying to do because it appears that you have 2/3 of your hard disk.

    Why do you think archiving emails in 2 places? Where are you trying to save space to?

  • Any transfer on a drive hard new - what is the best way?

    Here's a question simple and straightforward, I hope. I currently have two internal hard drives:

    • C (IDE): OS (Win7), programs
    • F (about three times larger than C, faster, SATA): for most of the multimedia stuff

    (And some external and a dvd burner, which should not be relevant to this question.)

    I ordered a new hard drive, which will take over old job of the F drive. Once I have install and F empty on it, I want to move everything that is currently on C for which is now F and the new C drive I start and run Windows from. (C would also get a new drive letter and would only be used for backup purposes).

    I much prefer this without having to reinstall Windows and all my other programs, and without investing in expensive software of type Ghost I would probably use only once every two years or more. I also prefer not to have to partition F, although I'll do it if necessary.

    What is the best way to do it?

    Windows 7 image and move it to the new hard drive

    The only way to avoid reinstalling programs is in the image of the player. Connect the new drive as a slave (if IDE), then partition the new drive, so it has two partitions (or more if you want) - the last partition being slightly larger, then the amount of data on your current hard drive. Also, make sure that the partition you are moving that Windows 7 is greater, then the current partition is.

    Make now a picture of your current hard drive with either programs below and save it to the last partition on your new drive. If you have the recovery of 100MB partition do not forget to include that. Then restore the image of the partition that you want Windows 7 installed-you put in place the same as long as your current drive, and you may need to remove/change the partitions that you have done.

    Both programs are offered free of charge:

    Reflect disk imaging:
    http://www.Macrium.com/reflectfree.asp

    Paragon Backup & Recovery Free Edition:
    http://www.Paragon-Software.com/home/DB-Express/download.html

    Remove the old hard drive and see if a new start, if it is not:

    Try to repair the Installation of Windows 7

    1. Insert the DVD of Windows 7 and restart your computer
    2 boot from the DVD.
    3. choose your language and click Next.
    4. click on repair your computer, select the operating system you want to repair.
    5. click on the link to repair list system in the System Recovery Options recovery tools.

    More information and a how to guide:
    http://pcsupport.about.com/od/toolsofthetrade/SS/Windows-7-startup-repair.htm

    If this does not solve it:

    1. Insert the DVD of Windows 7 and restart your computer
    2 boot from the DVD. If you are prompted, press any key to start Windows from the installation disc.
    3. choose your language and click Next.
    4. click on repair your computer, select the operating system you want to repair.
    5. Select command prompt and try the following commands (one command might work, or you may need to use several commands according to the exact problem):
     
    Bootrec /fixMBR
    Bootrec /fixBoot
    Bootrec /rebuildBCD

    Note: there is a space before the /.

    Space - increase free hard drive space

    Before taking the free picture of space hard drive if you want.
    The following procedure cleans the files associated with your user account. You can also use Disk Cleanup to clean all the files on your computer.

    1. click the button start, in the search box, type disk cleanup, then click Disk Cleanup.
    2. in the drives list, click the drive you want to clean, and then click OK.
    3. on the Disk Cleanup tab, select the types of files to delete.
    Note: To delete all Points except the most recent system restore - click on "Clean up System Files" and you will get another tab called more than Options. Now click More Options, and then click 'Clean up' under ' System Restore and shadow copies "and then confirm the deletion.
    4. click OK at the bottom of the window cleaning disc and in the message that appears, click on delete files.

    Reduce the amount of space allocated to system restore.

    1. start--> panel--> system and safety--> system
    2. then click on the "System Protection" link located at the top left.
    3. in "system properties? window, click the tab "System Protection".
    4 locate the 'Settings of Protection' box and select / click on the drive letter (usually c :))
    5. now, click the "Configure" button to change the settings to restore "disk space".
    6. move the slider to the left to reduce the amount of disk space, that System Protection can use.
    7. click "Apply" and then the "OK" button after setting the disk space.

    Questions about installing Windows 7?
    FAQ - Frequently Asked Questions from Installation Windows 7 & responses

  • What is the best way to move the data from the app and Server data structures?

    Hi guys,.

    I developed my application locally with Apex 4.2 and Oracle 11 g XE on Windows 7. Not far away, it is time to move the application to a server Oracle Apex. I guess that Exim is the way to go app. But what about the APA tables and data (tables/as 'customer' and 'account' created specially for the application)? I've been using a modeling tool, so I can run a DDL script to create the database server data structures. What is the best way to move the application data on the server? Is it possible to move the structures and data in a single process?

    Thank you
    Kim

    There is probably another way to get here, but in Developer SQL, on the navigation tree, expand objects until your table, right-click, and then click EXPORT... you will see all the options. It is a tedious process and it sucks IMO, but yes, it works. This is zero especially because 1) it's a table at a time, 2) If your data model is robust and has constraints and sequences and triggers, then you will need to disable all for the insert and we hope you can re-enable constraints, etc. without hitch (good luck, unless you have only a handful of tables)

    I prefer to use the oracle EXP command-line to export an entire schema, then the server target, I use IMP to import the schema. In this way, it is almost true. This makes the dirty life if you develop multiple applications in a single schema, and I felt pain - however - it is much easier to drop the tables and other objects is to create them! (thus, even if the process of EXP/IMP moved more than you wanted to "move".. blow everything you don't want on the target after the fact...)

    You can use method datapump oracle too.

    If not, what can be done, IF you have access to both servers of your instance of SQL developer (or if you can tnsping both already from the command line, you can use SQL * MORE), is to run a script that will identify the objects of your applications apex (usually by the prefix for the names of objects, such as % EBA_PROJ_ etc.) and do all the manual work for you. I've created a script that does just that so that I can pass data from dev to prod servers on a dblink. It is difficult because of the order that must be executed to disable constraints and then turn it back on and of course, more complicated if don't always precede you ALL your "objects demand '... (tables, views, triggers, sequences, functions, procs, indexes, etc.)

  • What is the best way to check the data

    What is the best way to check the actual changes in the data, i.e., to be able to see each insert, update, delete on a given line, when it happened, who did it, and what looked like to the front row and after the change?

    Currently, we have implemented our own audit infrastructure where we generate standard triggers and an audit table to store the OLD (values at the beginning of the Timekeeping point row before) and NEW (values at the beginning of the point of timing after line) values for each change.

    I put this strategy due to the performance impact there (important say least) and because it's something that a developer (confession, I'm the developer) came with, rather than something is a database administrator came with. I looked in the audit of the Oracle, but it doesn't seem like we would be able to go back and see what a line looked like at some point in time. I also watched flashbacks, but this seems like it would take a monumental amount of storage just to be able to go back a week, much less the years currently keep us these data.

    Thank you
    Matt Knowles

    Published by: mattknowles on January 10, 2011 08:40

    mattknowles wrote:
    What is the best way to check the actual changes in the data, i.e., to be able to see each insert, update, delete on a given line, when it happened, who did it, and what looked like to the front row and after the change?

    Currently, we have implemented our own audit infrastructure where we generate standard triggers and an audit table to store the OLD (values at the beginning of the Timekeeping point row before) and NEW (values at the beginning of the point of timing after line) values for each change.

    You can either:
    1. set up your own audit custom (as you do now)
    2 flashback Data Archive (11 g). Application for licence.
    3 version check your tables with Workspace Manager.

    >

    I put this strategy due to the performance impact there (important say least) and because it's something that a developer (confession, I'm the developer) came with, rather than something is a database administrator came with. I looked in the audit of the Oracle, but it doesn't seem like we would be able to go back and see what a line looked like at some point in time. I also watched flashbacks, but this seems like it would take a monumental amount of storage just to be able to go back a week, much less the years currently keep us these data.

    Unfortunately, the audit of data always takes a lot of space. You should also consider the performance, as custom triggers and Workspace Manager will perform much slower than the FDA if there is heavy DML on the table.

  • Forcing a file DOWNLOAD vs open a file when you click on a link... What is the best way to do it?

    Hi all

    What is the best way to ensure that when a user clicks a download link on a web page that the file is actually downloaded rather than the file open in any program can read? For my case, this includes two types of files, video files (.wmv, mainly) and .pdf files. I want my users to browse I provide for them, then they choose a link, click and the file downloads, NOT to have them play/open.

    I started researching on this last night, and the best I could come up with was the suggestion to add "& action = 3Dsave" file as a query string name. So, me being curious, I tried without success to find out whether A) the right way to do it or B) If this query string is the code appropriate to today's standards.

    I looked on the Web site of w3c.org not knowing if it was something that was of their Kingdom, but their website has been revamped and is now so cinfusing to navigate that one must become a software engineer to understand.

    Any help on this would be most appreciated. Thank you!

    Sincerely,

    wordman

    Create a file with the same name as the video/pdf file but with the extension .php. Insert the following code at the beginning (NO space before that in the file):

    <>

    Header ('Content-disposition: attachment; filename = yourfilename.xyz');

    Header ('Content-type: abc');

    ReadFile ('sourcefilename.xyz');

    ?>

    Replace with the file name to "yourfilename" above. sourceFileName may be the same. This gives you just the ability to change names.

    You can find a list of the types mime here: http://en.wikipedia.org/wiki/Mime_type

    If you know php, you have a lot of files, it would probably be easier to have all the links go on one page with the filename and mime type as parameters. You would then use the simple substitution to do the rest.

  • What is the best way to display a large number of records?

    I have about 12000 registry to commit to dababase.
    What is the best way to do it?

    Which depends on?

    Today I can't commit so many registry... The dabatase seems hanged!

    Thanks in advance

    Xavi says:

    Today I can't commit so many registry

    It should be possible to insert tens of thousands of lines in a few seconds using an insert even with a complex query as the view object and validation at the end.

    SQL> create table t as select * from all_objects where 0 = 1;
    
    Table created.
    
    Elapsed: 00:00:00.03
    SQL> insert into t select * from all_objects;
    
    32151 rows created.
    
    Elapsed: 00:00:09.01
    SQL> commit;
    
    Commit complete.
    
    Elapsed: 00:00:00.00
    

    I meant RECORDS instead of REGISTERS.

    Maybe that's where you're going wrong, records are to put on the turntables.

  • What is the best way to buy an iPhone Unlocked 7?

    Hi all

    I am currently using T-Mobile and want to get the new iPhone 7. Since there is no option for a sim-free iPhone, what is the best way to buy the new iPhone? Should I get the T-Mobile one full fare? I know that he will be released version but it will come with a T-Mobile sim so what will do with the sim card? Put it away or give it to T-Mobile? Or should I wait for the version without card sim to appear, which I don't think that will come out until November, and I don't want to wait that long.

    Thank you in advance.

    If you do not want to wait to pay full price for the model from T-Mobile.  You can do whatever you want with the SIM card.

  • I'll do a clean install on a blank hard drive upgrade but want to keep my Firefox settings - what is the best way to do this?

    I'll do an upgrade from Windows XP to Windows 7. I will be installing Windows 7 on a new empty hard drive. I want to keep my bookmarks Firefox and Ad Ons. What is the best way to do it. Thank you for your help.

    Hello

    The best thing for you to do is to make a backup of your Firefox profile. It is a folder that stores bookmarks and Add-ons that you can then add to the reinstalled Firefox on your new operating system.

    Learn you more about the Firefox profile folder, how to backup and restore, here.

    I hope this helps, but if not, please come back here and we can look at in another option for you.

  • What is the best way to sync contacts with a host of webdav?

    I use Thunderbird and Contacts Android as of client applications with an owncloud 8 hosted remotely. I have activated the application Contacts on Owncloud and now I want to sync the contacts between these systems. What is the best way to do it?

    I try to get sorted first Thunderbird. I tried Addressbooks Synchronizer, but currently, it gives me a message telling me that my credentials are wrong or is sitting silently, do nothing. I am aware that it is a file synchronization, the method of synchronization not saved, so it is not ideal, in any case.

    Is there a better, good timing, method I can use? I refuse to the thing that he is an unreasonable request or that no one asked before me, but I can't seem to find the answer.

    Thanks, Martin

    WebDAV my initial reaction was sogo connector.
    These guys recommend the same http://kb.mozillazine.org/Sharing_address_books

    Here http://www.sogo.nu/english/downloads/frontends.html

  • What is the best way to copy the 700 lots of e-mail files to a new computer?

    I'm moving my wife and an old (Thunderbird, Win XP) computer to a new computer (Thunderbird Win 7). It has about 700 local folders with thousands of emails in them. What is the best way to copy to the new computer?

    The easiest is just to copy the whole profile.

    Menu help > troubleshooting information

    Close Thunderbird

    In windows Explorer, select all and copy.
    just stick on a thumb or other portable media to read/write (not the CD or the DVD)

    on the new Machine to repeat the troubleshooting and close the steps to get the current profile folder

    This time all the portable media stick in the profile to replace what is there

    Open Thunderbird, your additions of e-mail contacts does it all

  • What is the best way to retrieve deleted mp3 files? I am running OSX Leopard 10.5.8 on a PowerPC G5 tower. I'll be very grateful for any help in this matter. Thanks to Chris

    Hello

    What is the best way to retrieve deleted mp3 files? I had a lapse of attention and I deleted a folder containing most of my music files. It is for the most part, the mp3 but there was regular audio files and some wav files in there also. I am running OSX Leopard 10.5.8 on a PowerPC G5 tower. I have another PPC machine to help the recovery, if I need, but at the moment, he is not appearing on my network (3 computers). I'm trying to change this soon. I'll be really grateful for any help in this matter.

    Thanks to Chris

    If you emptied the Recycle Bin after you move the folder to the trash, and you don't have a time Machine or another backup, then it is lost, sorry.

  • What is the best way to manage applications so that they do not fill a space of memory?

    I have an iPad Air Os9, 64 g

    However, I am already up to 39 g mem.

    What is the best way to manage applications if tat I can use them, but no pork then my mem space?

    y at - it an app that manages the apps?  should I delete and re-download a few apps later?

    I would like to take advantage of many more applications that I believe I have space for.

    You can see how much storage resumes via the settings app > general > Manage Storage - this screen lists each app space (the application and its content), total by selecting an app on this screen should tell you how much space the application content (files, documents, etc.) resumes.

    y at - it an app that manages the apps?

    No, iOS is a sandbox environment, apps can control or manage other applications.

    should I delete and re-download a few apps later?

    Depends on the app. deletion of an app will also delete its content, if it is an application where its content is important (such as documents), and that content is not stored elsewhere (e.g.)  Dropbox or cloud server), you may lose this content by deleting the app.

  • What is the best way (and possible) to remix a song mixed

    GarageBand 10.1.1

    10.11.4 OS

    Mac Book Pro

    16G RAM

    Hobby old YR 68 recording guy/try to leave a legacy

    What is the best way (and possible) to remix a song mixed

    I have a song that is most often improvised, I was told that his cool, however, re-registration is not possible.

    After reading a lot on the mixture, I now hear where the uneducated choice and errors that I made which explains the sound "not as good" that the song is.

    Before I just jump in and try to undo the settings on the tracks (one is DRUMMER) to return to the raw track before effects/eq/compression ect. is is possible to do?  Opens the unfavorable mix, rename it, save it and just go to work and cancel or disable 'things '.

    The basis of the lean mixture comes even to the root where I 'hot' securities, (orange and red)

    I guess by now you understand my question and I am open to a favorable opinion.

    Thanks in advance for your help.

    jojoguiitar_mn_usa

    I read this question so many times and I can't seem to figure out exactly what you're asking.  You just ask if you can go back in your GarageBand project and edit your tracks again?  Of course, you can, why not you?

Maybe you are looking for

  • Error 20 (what?)

    I have a file that I downloaded from the media spotlight, originating from a trusted site. I went to open it in downloads, and I got the following: Cannot expand "Filename.zip" in "downloads". (Error 20 - not a directory.) Should I be worried? Or is

  • updates are not installed, sp1 cannot get support to make updates installed

    Windows vista 32 bit, home basic-ops; get the message stating that I didn't have enough supported updates installed to facilitate the installation of sp1. Also will not install ie 8 upgrade.  I also installed a package of norton 360 Security, yet I w

  • Officejet J5780: Erasing memory Officejet

    My Officejet J5780 is end of life, and I want to recycle. But I fear that his memory may keep some personal information. The model memory specs are: 8 MB ROM, 32 MB of DDR memory. What is the best way to make sure that the memory is erased completely

  • Sleep Mode problems

    Whenever I put the computer on the mode 'sleep', it also puts my monitor on the mode "Eve". When I come back and shake the mouse to wake from sleep the monitor will appear for a little bit and then it happens mode 'sleep' and the only way to have acc

  • U2713H with the PS3 is a go?

    Hello I just got the U2713H as a replacement for the old U2711. I tried to plug my PS3 (Playstation 3) to the U2713H via HDMI but I got a white screen saying "Entering power saving mode" when I put HDMI as input source. The DVI cable is connected at