TO TAKE DATA AFTER (-) SIGN

HI,
i want to write an sql query whcih should give me the required output given below,
such as if (-) is between two numbers then it should give the number after (-) sign, i can use SUBSTR function but it also retrieves wheere i dont need when it is between two characters. DATA and Required OUtput is given below:
DATA
508 WINTON-LORNEVILLE HIGHWAY
51-53 SHORTLAND STREET
509 ELLERSLIE-PANMURE HIGHWAY
54-76 qUEEN STREET
1-9 LIVERPOOL STREET
REQUIRED OUTPUT
508 WINTON-LORNEVILLE HIGHWAY
53 SHORTLAND STREET
509 ELLERSLIE-PANMURE HIGHWAY
76 qUEEN STREET
9 LIVERPOOL STREET
BESt REGARDS

SQL> with t as (select '508 WINTON-LORNEVILLE HIGHWAY' DATA from dual union all
  2             select '51-53 SHORTLAND STREET' DATA from dual union all
  3             select '509 ELLERSLIE-PANMURE HIGHWAY' DATA from dual union all
  4             select '54-76 qUEEN STREET' DATA from dual union all
  5             select '1-9 LIVERPOOL STREET)' DATA from dual)
  6             --
  7             select data, regexp_replace(data,'[[:digit:]]+-([[:digit:]]+)','\1') new_data from t
  8  /
DATA                          NEW_DATA
508 WINTON-LORNEVILLE HIGHWAY 508 WINTON-LORNEVILLE HIGHWAY
51-53 SHORTLAND STREET        53 SHORTLAND STREET
509 ELLERSLIE-PANMURE HIGHWAY 509 ELLERSLIE-PANMURE HIGHWAY
54-76 qUEEN STREET            76 qUEEN STREET
1-9 LIVERPOOL STREET)         9 LIVERPOOL STREET)
S

Similar Messages

  • After Deploye application  How can user take data back up.

    Hi,
    i have created an application .Which is run in offline Mode in a machine .User enter data through this Application Form .Data Enter Though this Form in to our application data base table .
    Here User want to take data back up in evening which is enter by User in a day .
    How Can User Take Full Day Data Back up.Whicj are enter by User.
    How Can I do This .
    i have install XE in my machine .When i click On Start-->All Program -->Oracle database 10g Express Edition -->Backup Database
    What is the use of Backup Database .
    Thanks & Regards
    Manoj Kaushik
    Edited by: Manoj Kaushik on Mar 17, 2010 10:40 PM

    Hi,
    i have created an application .Which is run in offline Mode in a machine .User enter data through this Application Form .Data Enter Though this Form in to our application data base table .
    Here User want to take data back up in evening which is enter by User in a day .
    How Can User Take Full Day Data Back up.Whicj are enter by User.
    How Can I do This .
    i have install XE in my machine .When i click On Start-->All Program -->Oracle database 10g Express Edition -->Backup Database
    What is the use of Backup Database .
    Thanks & Regards
    Manoj Kaushik

  • Can not pass data after while loop

    Hello.
    I have created a VI for my experiment and am having problem passing data outside a while loop to save on an excel file. The VI needs to first move a probe radially, take data at 1mm increment, then move axially, take data radially at 1mm increment, then move to the next axial position and repeat. It would then export these data to an excel file. The VI is a little complicated but it's the only way I know how to make it for our experiment. I have tested it and all the motion works correctly, however I can not get it to pass the data after the last while loop on the far right of the VI where I have put the arrows (Please see the attached VI ). Is it because I'm using too many sequence, case, and while loops?  If so, what other ways can I use to make it export data to the excel file?
    Any help would be appreciated. 
    Thank you,
    Max
    Attachments:
    B.Dot.Probe.Exp.vi ‏66 KB

    Ummmm .... gee, I'm not even sure where to begin with this one. Your VI is well .... ummmm... You have straight wires! That's always nice to see. As for everything else. Well... Your fundamental problem is lack of understanding of dataflow programming. What you've created is a text program. It would look fantastic in C. In LabVIEW it makes my heart break. For a direct answer to your question: Data will not show up outside a while loop until the while loop has completed. This means your most likely problem is that the conditions to stop that specific loop are not being met. As for what the problem is, I don't even want to start debugging this code. Of course, one way to pass data outside of loops is with local variables, and hey, you seem to be having so much fun with those, what's one more?
    This may sound harsh, and perhaps be somewhat insulting, but the brutal truth is that what I would personally do is to throw it out and to start using a good architecture like a state machine. This kind of framework is easy to code, easy to modify, and easy to debug. All qualities that your code seems to lack.
    Message Edited by smercurio_fc on 08-17-2009 10:00 PM

  • Digital Signatures/Javascript After Signing?

    Hello everyone,
    I'm currently developing forms for my company, post processed through Adobe Acrobat 9 Standard, that require digital signatures. Working in the food industry requires compliance to specific FDA guidelines, specifically CFR 21 part 11. In order to meet the requirements I must develop an SOP (Standard Operating Procedure) that proves signatures are accurate and secure.
    The process is tedious, and I have called a few meetings thus far to discuss some of the unforseen circumstances. During the discussion a question was brought up stating; What protects forms stored in the archives (3 years for compliance) from being corrupted by a disgruntled employee? Specifically, what stops an employee from clearing a digital signature? I realize we can set up file access rights to the forms to prevent such happenings, but majority of the forms are setup to hold 6 months to a year of info, thus wouldn't be archived until filled completely.
    My question: Does anyone out there know of a javascript or trick to disable the "Clear Signature" function after signed? I've been searching and have turned up empty handed. Also, does anyone have any other javascripts that are used after digital signature occurs?
    Thanks in advance for any help you can give me,

    George,
    Thanks for your response.
    The issue is not if the file is deleted, the issue is if the files becomes "manipulated". I think "corrupted" was the wrong choice of words.
    To explain: Any form that is completed has several digital signatures within the contents, depending on which QA Technicians complete the task (e.g. Calibrations, Metal Detector Settings, etc...). Forms are setup by days, weeks, or in some cases years, and have designated signature areas for the time period the test was conducted. So, after "John Smith" completes his portion of the form he is required to digital sign the document, after signing is complete all information is set to read only and cannot be altered unless the signature is deleted.
    Digital signatures can be deleted in two ways:
    1. The user who signed the document, based on active directory, has the ability to "clear signature". As and FYI: no other user is capable of deleting a signature signed by another employee. (does not apply to the form author)
    2. The file creator can add a "Reset button" control, thus being able to delete any data specified.
    So as I said I'm looking for a way to lock all signature functions, after sign is completed, even for the original signer. So if form "Calibration01" is currently being filled out and has signatures x,y,and z on it; I want to make sure if "x" is disgruntled they do not maliciously go and clear their signature. Also, I would like all fields associated with the signature to be locked without any way for the user to manipulate or revise data.
    If anyone has any javascripts that run once signer digitally signs, it would be a great help,
    Thanks,

  • FUnction Module to Calculate future date after 'x' years

    Hi Gurus,
    Can anyone tell me the Standard Function Module which will take today's date as i/p & return the date after 10 years.
    e.g say input date is 18.05.2010 & input year is 10.
                 output = 17.05.2020
    Regards,
    Rohit.

    why would it be in 10 years 17.05.2010 and not 18.05.2010 ??
    which logic do you want to use to calculate the 10 years after ?
    kind regards
    arthur

  • TS3367 Unable to verify after sign in FaceTime

    FaceTime unable to verify.After sign in I click next to verify but it always back to sign in pages.please help,Ty..

    Try this, go to settings --> general--> Date&time --> Set automatically to OFF. Then set up the date/time manually by enterning the time zone that you are in. Try sign in to face time again. This step work for my friend who is having the same problem.

  • Missing data after server restart

    Hi,
    We restarted our MDM server at the OS level last night. Everything seemed okay after the restart. However, when our users came in this morning, they found that some data was missing from a table. We have a Material repository with 3 main tables. Some data which have previously been populated was not appearing in our Products Detail table, the largest of the three. A large number of rows in the table had columns that failed to load with data on the repository auto-start that occured after the server restart. The auto start value in the mds.ini file was set at 300 (5 minutes) as we had seen this iisue happen once before, and thought that may help.
    A stop and restart of the repository corrected the issue. Is there anything we could have done to prevent this? Is it worthwhile to try increasing the auto start delay again? Validating detail data after every server restart is not an effective option.  
    MDM version: 7.1 SP08
    OS: AIX  DB: Oracle 11g
    Thanks!
    Dave

    Hi Dave,
    I meant that when you load repository using Immediate data is loaded from .acl files (accelerator files) in a async manner.
    Whereas when you load by Update Indices new acl files are generated.
    Below men6tioned is a comparision between the 2 ways of laoding repository:
    Load Repository Immediate
    o Loads indexes from accelerator files instead of being regenerated by reading the data them from the DB and creating the index.
    o Automatically builds indexes stored in out-of-date accelerator files.
    o Is usually fast.
     Load Repository with Update Indices
    o Rebuilds all MDM indexes files by reading and indexing data stored in the DB. The results are flushed on disk as accelerator files.
    o Necessary by repository schema changes or if any error occurs.
    o Might take significant amount of time to complete.
    So when you observe some visual data impact in your repository it is good idea to rebuild indexes.
    I guess we cannot schedule this as default behavior is to load by immediate even through the inin parameter.
    as a best practice one can do this by fixing a time frame eg monthly depending on data/schema changes.
    Thanks,
    Ravi

  • Page Not Found error for Creative Cloud - After sign in

    Today, after sign in I got message on home page ( Files section) 'Page Not found- Sorry, we couldnt find that page'.
    I have all my valuable data, but can not see anything now. Till yesterday I worked with CC, wiythout any issue.
    Worried about all my valuable data. How do I get it back. Is this because I am useing Free CC version?

    I just noticed one simple thing. I do not know its bug or what.
    After sign in the page is getting redirected to :
    https://creative.adobe.com/#files
    where I am getting error saying that page not found.
    I tried to add '/ ' after that and it works.
    https://creative.adobe.com/#files/  <<< like this.
    I guess some link issue or redirecting issue.

  • I try to connect to wifi in hotel. It shows its connected to the network but it never takes me to sign on screen and will not connect even though wifi shows full bars

    I try to connect to wifi in hotel. It shows its connected to the network but it never takes me to sign on screen and will not connect even though wifi shows full bars

    Have you tried clearing Safari? Clear Safari, close Safari completely and reboot your iPad. Try again.
    Go to Settings>Safari>Cookies and Data.
    If you are running iOS 5 or iOS 6 you close apps like this. Tap the home button once. Then tap the home button twice and the recents tray will appear at the bottom of the screen. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button twice.
    If you are running iOS 7, you close apps this way. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Continuing after Sign off in GRC PC 2.5

    Hi,
    Can someone tell me how to proceed with the Newyear once signoff has happened for a particular year.
    For example, if we have completed sign off of organisation in 2008, how to proceed with process control during the year 2009.
    Tnx and rgds
    Subhash

    Dear Subhash,
    if you signed off for periode "year 2008" you now swith the time frame to "year 2009". You can do this e. g. in "Oranizations". This has the effect that you work in this new time frame and you can change master data again. Perzonalized in "year 2008" master data are frozen and can't be changed after sign-off.
    Kind regards,
    Jürgen

  • Option to wipe data after ten failed passcode attempts

    Having just upgraded to the latest 2.1 software there is now the security setting to wipe data after ten failed passcode attempts - which I can't turn off as I am synching with work email. Can anyone confirm that this is 10 CONSECUTIVE attempts as 'fat finger syndrome' often means I take a couple of gos each time. Thanks!

    A quick search of Apple Support yielded this:
    "If you repeatedly enter the wrong passcode, iPhone or iPod touch will be disabled for longer intervals, before you can try again. After too many unsuccessful attempts, you won't be able to try again until you connect to the computer you normally sync with. Note that starting with iPhone 2.1 software, there is a setting to cause the device to erase itself after 10 consecutive incorrect password attempts. This setting is off by default. It can be turned on by tapping Settings > General > Passcode Lock after you enter a correct passcode."
    http://support.apple.com/kb/HT1212
    You can search Apple support for this as well. It is probably in the manual as well:
    http://manuals.info.apple.com/enUS/iPhone_UserGuide.pdf

  • Do I automatically obtain a license after signing in the iOS Developer Program

    Do I automatically obtain a license after signing in the iOS Developer Program? Is there a maximum number of licenses that can be obtained in the iOS Program?

    Welcome to the Apple Support Communities
    With one Apple ID, you can obtain one license for the iOS Developer Program, Mac Developer Program and Safari Developer Program. If you want more for other people, these people will have to register on the iOS Developer Program with their own Apple ID. You will get the license for the iOS Developer Program during the next 24 hours after submitting the request, depending on the time it takes to Apple to check the credit card

  • IPhone 6 won't connect to cell data after leaving wifi

    iPhone 6 won't connect to cell data after leaving wifi signal.  Need to reboot or go into airplane mode.  My area has LTE, but iPhone hasn't connected to that ever.  I'm thinking bad antenna or is this a cell provider problem.  I'm on AT&T.

    Hi, guanavera.  
    Thank you for visiting Apple Support Communities.
    I would recommend trying the steps in the article below when experiencing this issue.
    If you see No Service in the status bar of your iPhone or iPad
    http://support.apple.com/kb/ts4429
    You may also want to take a look at the information in the link below.
    iOS 8.0.2 
    http://support.apple.com/kb/DL1758
    Cheers,
    Jason H.

  • The ADO NET Source was unable to process the data. ORA-64203: Destination buffer too small to hold CLOB data after character set conversion.

     We developed a SSIS Package to pull the data From Oracle source to Sql Server 2012. Here we used ADO.Net source to pull the records from Source but getting the below error after pulling some 40K records.
      [ADO NET Source [2]] Error: The ADO NET Source was unable to process the data. ORA-64203: Destination buffer too small to hold CLOB data after character set conversion.
    [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. 
     The PrimeOutput method on ADO NET Source returned error code 0xC02090F5. 
     The component returned a failure code when the pipeline engine called PrimeOutput(). 
    The meaning of the failure code is defined by the component, 
    but the error is fatal and the pipeline stopped executing. 
     There may be error messages posted before this with more 
    information about the failure.
    Anything that we can do to fix this?

    Hi,
      Tried both....
      * Having schema type as Nvarchar(max). - Getting the same error.
      * Instead of ADO.Net Source used OLEDB Source with driver as " Oracle Provide for OLE DB" Getting error as below.
           [OLE DB Source [478]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
           [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE DB Source returned error code 0xC0202009.  The component returned a failure
    code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the
    failure.
    Additional Info:
       * Here the Source task is getting failed not the conversion or destination task.
    Thanks,
    Loganathan A.

  • Issue with list saving data after sites upgrade from sharepoint 2010 to sharepoint 2013

    Issue with list saving data after sites upgrade from sharepoint 2010 to sharepoint 2013 
    Newform.aspx of list:-
    Custom List is not saving data sometimes in the new form after 15 minutes and only blank entry record got created without saving data, even though some columns are mandatory fields?

    Hello dcakumar,
    Sounds like a strang issue. If you can reproduce this can you see some errors in the ULS logs?
    - Dennis | Netherlands | Blog |
    Twitter

Maybe you are looking for