Zeros - an extension to my previous question

Hello Experts,

I have a question again associated with my previous questions. I'll contact using an example.

St_no - o/p-St_no
------------------------------------------
002987 002987
1324-0 a234 - 001324-0 a234
5555 a222 - 005555 a222
B23 222 - 000222 b23
1-0 c22222 - 000001-0 c22222

I want the output in the format above. I want lpad zeros at all entry numbers until it reaches a space 6-digit.

Please let me know if you have any suggestions. Thanks in advance.

Try this

For space :
select lpad(substr(str,1,instr(str,' ')),6,'0') || ' ' || substr(str,instr(str,' ') + 1) from dual;

For hyphen
select lpad(substr(str,1,instr(str,'-')),6,'0') || '-' || substr(str,instr(str,'-') + 1) from dual;

Arun-

Not tested

Tags: Database

Similar Questions

  • A way to find my previous questions and problem reports?

    Is it possible on this forum to find my previous questions and problem reports? Since viewing a question earlier today, I found the greater PART of the answer and would like to add that I found the question, without waiting for someone else to answer. I can't remember the title I gave to the previous question, or I would use this title in the search for it.

    Information troubleshooting below is most relevant to a previous problem that this question.

    Contributions my link on main page of the forum should display a list of all your job offers.

    See the search in this forum for your username under "posed by".

  • I have a project in iMovie HD6 and want export to Final Cut Pro.  I see that it is not possible from the previous questions, but is it possible that I could maybe create a dvd of the iMovie project and then who import in Final Cut?

    I have a project in iMovie HD6 and want export to Final Cut Pro.  I see that it is not possible from the previous questions, but is it possible that I could maybe create a dvd of the iMovie project and then who import in Final Cut?  I just want to make a new trailer for the project.

    What you suggest is possible but it takes software and third-party quality loss.

    Instead, export a QuickTIme movie. If you have a choice of codecs, choose Apple Intermediate Codec. You can save it where you want it-maybe in the movies.

    Then import the movie into FCP as a clip.

    Good luck.

    Russ

  • HP Officejet 6830: wants to turn off printer 2-sided, and the author of the previous question link does not work

    to turn off printer 2 faces, and the author of the previous question link does not work

    Please read this post then provide some details.  What operating system? Windows, you can change the default value by going into the directory devices and printers, click with the right button on the Officejet 6830, select Printing Preferences, and choose the desired default values, apply.

  • Replace the previous Question on Windows 7 jump lists

    Previous question incorrectly referred to as Windows 7 Jump Lists rather than the Start menu lists.  I tried to delete it, but could not... Please disregard.  It is corrected below:

    With the Windows 7 Start Menu, number of items in the list of the default Start Menu is set to 10.  There are currently 10 applications in this list.  When I opened an application 11, different from those in the list on the Start Menu, I expected to be added to the list with the oldest list entry being deleted (by example, most recent, most former fate).  This was not the case.  When I click an app (PPT 2007) from the desktop, regardless of how many times I opened it, it was not added to the list of the Start Menu.  Only after you open in the all programs list it has been added to this list.  In addition, no matter how many times I opened Windows Explorer, whether by the bar of tasks or in the list of all programs, it is not added to the list of the Start Menu.

    The Microsoft online help States the following on the list from the Start Menu:

    "You will notice that, over time, the lists of the programs in your Start menu change. This happens for two reasons. First of all, when you install new programs, they have added to the list of all programs. Second, the start menu detects the programs you use the most and places them in the left pane for quick access. »

    First of all, what is adding programs to the list of all programs has to do with the list of the Start Menu?  If I install a new application, is automatically added to the start menu?  Second, what are the programs will be added to the list of the Start Menu?  You have to open 'x' repeatedly to be added to the list?  Are there exceptions to what is added to the list and if so, what are those exceptions?

    If someone can explain the details of how the list of the Start Menu is supposed to behave, I would be very grateful.  At the moment it seems inconsistent.  All of the default settings in the Start Menu properties that affect the lists are active (for example; ("Store and display recently opened programs in the menu start" and "Store and display recently opened items in the start menu and taskbar" is selected both).

    Thanks much for any help.

    LPS

    If you click on the Customize button you will see this below,

  • Related to the previous question, I can SEND, but I receive a message that indicates the message failed to be saved under sent folder?

    Earlier, I posted a question of not being able to download new messages and in the Inbox tab indicates treatment with to solve them. I was wondering if I was still able to send, sent a test email. He sends (I confirmed by downloading the new email on gmail, but I get the message that TB could not save the message in the sent folder. All ideas are problems and if they are related?

    Yes, they are linked. Please just stick to one thread, it confuses the hell out of bunbos like me.

    I'll close it. Please post the picture in our other thread https://support.mozilla.org/en-US/questions/1068937

  • Disregard my previous question about downloading the version of Windows on a disc. My friend was able to download itself with dial-up.

    Earlier today, I asked if it would be possible to download the Windows of Thunderbird on a disc using my Mac. My friend just called and said she has downloaded successfully to herself. Sorry for the false alarm.

    all communications on this can be found here:
    https://support.Mozilla.org/en-us/questions/1008956?ESAB=a & s = & r = 0 & s = ACE

  • How in the world someone meets a queastion or add info to a previous question? Where can I ask a simple question or add info to a previous quest

    Just as I suspected, I'm a bunch of predetermined responses. Where can I put the power to Mozzila a question about my particular problem? Do not give a lot of your presumptuous answers.

    DND has documentation, but the "Developer toolbar" is built into Firefox.

    You can try one of the following methods to remove the view:

    • Click on the small x at the right end to shut up
    • SHIFT + F2
    • button '3-bar' menu > developer > (uncheck) Developer Toolbar
    • (menu bar) Tools menu > Web Developer > (uncheck) Developer Toolbar
  • How to a previous question, I asked to check answers

    At a question about printing edit several days ago. How do the question to check answers? Go back a day is unacceptable.

    Once you are connected to this forum and you look at this page - https://support.mozilla.com/en-US/questions - click on the link my Contributions at the top of this page, to view a list of all your messages in this forum.

  • Pavilion G7-1260us: 3 responses to the previous question were well intended but not useful. Video recording palette failed

    Apologize to publish new same problem but to reaffirm for clarification. The computer works fine with default (poor) VGA graphics, but stops almost immediately when using Intel HD 3000 graphics. All the equipment tests pass including the motherboard, but the test of component for video control palette fails.  I guess that it is the graphics card Intel chip but I don't know if it can be repaired or replaced... or anything else will cause the described problem? I have a problem almost identitical with a Macbook Pro with Intel High Res graphics card. Works well with the low-resolution graphic aps and I fear it's an insoluble Intel so stir the question.

    Finally 'pass' on all the tests.  After replacing the CPU, Windows 7 started many, many updates to loading. I downloaded the HP Vision Hardware Diagnostics for additional verification, and that's all right. Graphics card Intel HD 3000 works with 3D Open GL tests.

    Thank you.

  • Correction to the previous question regarding Windows XP PRO for Windows 8.1, & HOW TO UNINSTALL WIN XP PRO?

    I think MS Store I buy Windows 8.0 first, then the upgrade (free) from here.

    In fact, it would be a drive replacement (not a download was updated on my desk).  Responded.

    * QUESTION UNANSWERED, MUST HOWEVER HOW DO I UNINSTALL WINDOWS XP PRO? (&).

    * IT IS NOT IN MY CONTROL PANEL. WHAT IS A PROCEDURE IN SAFE MODE?

    Any advice greatly appreciated. Best regards, Doug

    8 must be installed before the 8.1 update. Unless you have a version of 8.1, it is the complete installation of the o/s.

    You can not switch to Windows XP.

    In all cases, you should go on the forums of Windows 8/8.1 and ask your questions there.

  • Where are my previous questions?

    I hate to be such a cot, but my hard drive died, was replaced, and I'm trying to pick up where I left off. I can't find where I posted questions before. I think that my last case had to do with things in my organizer of freezing, but am not sure.

    Click on my link.

  • Update to my previous question for a mix of cinema 5.1 cinema

    I figured out how to monitor all my surround speakers and the path of channel suitable from adobe for my sound card for my monitors, now of course first fails to send the video file to audition.

    I tried video dynamic links that didn't work once on a short excerpt. Then I tried the video rendering before first audition. Which fails to operate in this way. It seems that all audio files go to the hearing, but no video file that makes useless edit in audition. Anyone at adobe check to make sure it works?  I mean a minute two clip on youtube is one thing, but when your twenty or thirty years or the poor sole that is 45 minutes on a true story, I'm sorry for. Adobo support could not help. Could not understand the questions I ask myself. With all the movies made, someone must be on a cruise with 5.1 mixed in adobe. At least I hope.

    Thank you

    Mike

    My 2 cents is you will need to re - encoding video h.264 in quicktime inside the first png before sending it to the hearing.

  • to add to my previous question, bright room told me "there is an error in working with video" someone you suggest a fix?

    It worked a few days back but not yesterday or today and there was a patch ot two since then?

    Hi people I solved the problem by restarting light room under Ctrl Shift Alt (as recommended by both the Adobe people chetna and?) Sorry I can't see his name and reset all default preferences. This gave me the options to play the video and to solve the problem of export... .in the export under the video tab window, I put the file type 'File not edited original' and iron out the last of my problems.  I have to say that it's nice to adobe to provide the software so unstable that so many users have similar problems.in respond to what precedes by Claes, next time lightroom, stops, I will try your solution but for now it is sorted, if I get more problems, then maybe I'll go on another software provider and see if they have a program that works all the time every time.

    Best regards

  • HELP needed on 'Advanced Photo Album' Flash CS5 model Io-error: url not found

    Hello people!

    I had a problem on my slide show I did with the "Advanced Photo Album" model. This problem is not new, I found a thread here with similar problems, but it did not help me. I had the same code as the people in the other forum, but my problem is not the download problem. but I can't even see the images when I test the movie. The rest works fine, it shows the titles of the image on the right, and in fact "slides". The only problem is I get the error:

    #2044 error: ioError unverarbeitet. Text = Error #2035: Die URL wurde nicht found. URL: file:///C|/Users/User/Desktop/FenzBildergalerie/image1.JPG

    (for those who don't speak German: it is said: IO error not handled. text = Error #2035:Url not found.)

    I followed this tutorial here and did everything in exactly the same way.

    all my images are named image1.jpg and so forth and are all in the same folder as the .swf and .fla here files:

    folderdirectory.jpg

    AND: I followed the advice of the other forum:

    "To ensure that the images are in the same location as the swf file, does not matter the fla file.  Also I suggest that you manually rename one of the images, rename the file name and extension.  My previous question to have to the hardcode the. JPG as all caps was weird because on my system, they presented as .jpg.  Again, I would renameing the first and second image with a manual .jpg typed in the name of the file, not only the code as3.

    PS also try to change the as3 of the 3rd and 4th image code in. JPG to see if that helps. »

    I have tried every single possibility in renamed:

    Image1.jpg

    Image1. JPG

    Image1. JPEG

    img1jpg

    img1. JPG

    It does not at all...

    still, it looks like this:

    galleryissue.jpg


    Here is my code:

    Import fl.data.DataProvider;
    Import fl.events.ListEvent;
    Fl.transitions import. *;
    Fl.controls import. *;

    USER CONFIGURATION SETTINGS.
    var secondsDelay:Number = 5;
    var autoStart:Boolean = true;
    var transitionOn:Boolean = true; true, false
    var transitionType:String = "Fade"; Blinds, Fade, Fly, Iris, Photo, PixelDissolve, rotate, Squeeze, wipe, Zoom, random
    var hardcodedXML:String = "< photos > < image title ="View"> image1.jpg < / image > < image title ="Badesteg"> image2.jpg < / image > < image title ="Location"> image3.jpg < / image > < image title ="Kochecke"> image4.jpg < / image > < image title = 'Sofa' > image5.jpg < / image > < image title ="Garden"> image6.jpg < / image > < image title ="Liegebereich"> image7.jpg < / image > < image title ="Room"> image8.jpg < / image > < image" title = "Badekar" > image9.jpg < / image > < image title = "Bett" > image10.jpg < / image > < / photos > «;»
    THE END USER CONFIGURATION SETTINGS

    DECLARE VARIABLES AND OBJECTS.
    var imageList:XML = new XML();
    var currentImageID:Number = 0;
    var imageDP:DataProvider = new DataProvider();
    var slideshowTimer:Timer = new Timer ((secondsDelay*1000), 0);
    REPORT AS FINISHED

    HARDCODED FOR XML CODE =.
    imageList = XML (hardcodedXML);
    fl_parseImageXML (ImageList);
    END OF THE HARD-CODED XML

    EVENTS =.
    imageTiles.addEventListener (ListEvent.ITEM_CLICK, fl_tileClickHandler);
    function fl_tileClickHandler(evt:ListEvent):void
    {
    imageHolder.imageLoader.source = evt.item.source;
    currentImageID = evt.item.imgID;
    }
    playPauseToggle_mc.addEventListener (MouseEvent.CLICK, fl_togglePlayPause);
    function fl_togglePlayPause(evt:MouseEvent):void
    {
    If (playPauseToggle_mc.currentLabel is "play")
    {
    fl_startSlideShow();
    playPauseToggle_mc.gotoAndStop ("pause");
    }
    Else if (playPauseToggle_mc.currentLabel == "Paused")
    {
    fl_pauseSlideShow();
    playPauseToggle_mc.gotoAndStop ("play");
    }
    }
    next_btn.addEventListener (MouseEvent.CLICK, fl_nextButtonClick);
    prev_btn.addEventListener (MouseEvent.CLICK, fl_prevButtonClick);
    function fl_nextButtonClick(evt:MouseEvent):void
    {
    fl_nextSlide();
    }
    function fl_prevButtonClick(evt:MouseEvent):void
    {
    fl_prevSlide();
    }
    slideshowTimer.addEventListener (TimerEvent.TIMER, fl_slideShowNext);
    function fl_slideShowNext(evt:TimerEvent):void
    {
    fl_nextSlide();
    }
    EVENTS OF THE END

    FUNCTIONS AND LOGIC =.
    function fl_parseImageXML(imageXML:XML):void
    {
    var imagesNodes:XMLList = imageXML.children ();
    for (var i in imagesNodes)
    {
    var imgURL:String = imagesNodes [i];
    var imgTitle:String is imagesNodes [i] .attribute ("title");.
    imageDP.addItem ({label: imgTitle, source: imgURL, imgID:i});})
    }
    imageTiles.dataProvider = imageDP;
    imageHolder.imageLoader.source = imageDP.getItemAt (currentImageID) .source;
    title_txt. Text = imageDP.getItemAt (currentImageID) .label;
    }
    function fl_startSlideShow (): void
    {
    slideshowTimer.start ();
    }
    function fl_pauseSlideShow (): void
    {
    slideshowTimer.stop ();
    }
    function fl_nextSlide (): void
    {
    currentImageID ++;
    If (currentImageID > = imageDP.length)
    {
    currentImageID = 0;
    }
    if(transitionOn == true)
    {
    fl_doTransition();
    }
    imageHolder.imageLoader.source = imageDP.getItemAt (currentImageID) .source;
    title_txt. Text = imageDP.getItemAt (currentImageID) .label;
    }
    function fl_prevSlide (): void
    {
    -currentImageID;
    If (currentImageID < 0)
    {
    currentImageID = imageDP.length - 1;
    }
    if(transitionOn == true)
    {
    fl_doTransition();
    }
    imageHolder.imageLoader.source = imageDP.getItemAt (currentImageID) .source;
    title_txt. Text = imageDP.getItemAt (currentImageID) .label;
    }
    function fl_doTransition (): void
    {
    If (transitionType is "Blinds")
    {
    TransitionManager.start (imageHolder, {type: stores, direction: Transition.IN, duration: 0.25});
    } ElseIf (transitionType == 'Fade')
    {
    TransitionManager.start (imageHolder, {type: Fade, direction: Transition.IN, length: 0.25});
    } ElseIf (transitionType == 'Fly')
    {
    TransitionManager.start (imageHolder, {type: Fly, direction: Transition.IN, length: 0.25});
    } ElseIf (transitionType == "Iris")
    {
    TransitionManager.start (imageHolder, {type: Iris, direction: Transition.IN, duration: 0.25});
    } ElseIf (transitionType == 'Photo')
    {
    TransitionManager.start (imageHolder, {type: Photo, direction: Transition.IN, duration: 0.25});
    } ElseIf (transitionType == "PixelDissolve")
    {
    TransitionManager.start (imageHolder, {type: PixelDissolve, direction: Transition.IN, length: 0.25});
    } ElseIf (transitionType == "Rotate")
    {
    TransitionManager.start (imageHolder, {type: turn, direction: Transition.IN, length: 0.25});
    } ElseIf (transitionType == 'Squeeze')
    {
    TransitionManager.start (imageHolder, {type: Squeeze, direction: Transition.IN, length: 0.25});
    } ElseIf (transitionType == "Wipe")
    {
    TransitionManager.start (imageHolder, {type: wipe, direction: Transition.IN, length: 0.25});
    } ElseIf (transitionType == 'Zoom')
    {
    TransitionManager.start (imageHolder, {type: Zoom, direction: Transition.IN, duration: 0.25});
    } ElseIf (transitionType == "Random")
    {
    var randomNumber:Number = Math.round (Math.random () * 9) + 1;
    Switch (NombrAl) {}
    case 1:
    TransitionManager.start (imageHolder, {type: stores, direction: Transition.IN, duration: 0.25});
    break;
    case 2:
    TransitionManager.start (imageHolder, {type: Fade, direction: Transition.IN, length: 0.25});
    break;
    case 3:
    TransitionManager.start (imageHolder, {type: Fly, direction: Transition.IN, length: 0.25});
    break;
    case 4:
    TransitionManager.start (imageHolder, {type: Iris, direction: Transition.IN, duration: 0.25});
    break;
    case 5:
    TransitionManager.start (imageHolder, {type: Photo, direction: Transition.IN, duration: 0.25});
    break;
    case 6:
    TransitionManager.start (imageHolder, {type: PixelDissolve, direction: Transition.IN, length: 0.25});
    break;
    case 7:
    TransitionManager.start (imageHolder, {type: turn, direction: Transition.IN, length: 0.25});
    break;
    case 8:
    TransitionManager.start (imageHolder, {type: Squeeze, direction: Transition.IN, length: 0.25});
    break;
    case 9:
    TransitionManager.start (imageHolder, {type: wipe, direction: Transition.IN, length: 0.25});
    break;
    case 10:
    TransitionManager.start (imageHolder, {type: Zoom, direction: Transition.IN, duration: 0.25});
    break;
    }
    } else
    {
    trace ("error - transitionType not recognized");
    }
    }
    if(autostart == true)
    {
    fl_startSlideShow();
    playPauseToggle_mc.gotoAndStop ("pause");
    }
    END OF FUNCTIONS AND LOGIC

    I would really appreciate your help!

    Best regards, eva

    PS. I m of the Austria, if you prefer to speak German

    If this image you show first in the first display shows the folder of your images, then your code is not agree with the names of these images, and one of them be wrong will kick you get the error message...  ". JPG 'and '. JPEG"is not the same as".jpg ".  You should change all your image filenames to match with the code so that you have a consistent naming of your files.

    var hardcodedXML:String ="Image1.jpgImage2.jpgimage3.jpgimage4.jpgimage5.jpgimage6.jpgimage7.jpgimage8.jpgimage9.jpgimage10.jpg";

Maybe you are looking for

  • Will be iMovie (4K) work on early 2009 iMac?

    2.66 core duo Intel of El Capitan 10.11.4. Graphics card is NVIDIA GeForce 9400 256 MB. Update soon to 8G of RAM. I read that playback is jerky. What can I do to make this work? Thank you.

  • How can I create a virtual store accout?

    Hi, I bought a TOSHIBA JOURN. E TOUCH, but when I access the online store, I request an email and a password.My question is where can I create an account?My personal account is 18468.I bought a second hand, plese help... Sorry for my English.

  • DesignJet 800: DesignJet 800 gas station 21.10 error

    I have DesignJet 800 where the belt failed, he grated damaging transport. Cart and belt have been replaced, but now I'm getting 21.10 service station error. I followed recommended procedures described in the manual of maintenance for troubleshooting

  • Preformance issues when you play on my Qosimo x 770

    Hello! I have problems of preformance by playing newer games on my Toshiba Qosmio x 770. Basically, everything works fine the first 30 to 45 minutes of play, but I'm suddenly start getting the temporary fall FPS, which usually lasts from 20 to 60 sec

  • I can hear whistling by changing the brightness level of Satellite A300

    Hello I do not speak English very well excuse me. I have a display problem. When I low (dim) brightness, a whistle is here.Is this normal or not?I have a Satellite A300 1lW