most effective way to retrieve the channel number

Hello guys,.

I use this Regexp to extract numbers in a string, and I doubt that there is a more effective way to achieve this:
 SELECT  regexp_replace (regexp_replace ( REGEXp_REPLACE ('  !@#$%^&*()_+= '' + 00 SDFKA 324 000 8702 234 |  " ' , '[[:punct:]]',''), '[[:space:]]',''), '[[:alpha:]]','')  FROM dual
{code}

Is there a more efficient way to get this done ?

Regards,
Fateh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

Hello

Using regular expressions, you can remove everything that is not a number by saying:

REGEXP_REPLACE ( str
            , '[^[:digit]]'
            )     

When ^ is the first character inside the brackets, it means "everything except the following.

Tags: Database

Similar Questions

  • The most effective way to retrieve a number of virtual machines in an org?

    Hi all, what is the most effective way to retrieve a MV of County in an org. I am currently recovering all CDV in an org, then all the vApps, then all of the virtual machines and pushing them into a table, then do a vms.length on the table filled by all virtual machines.

    It takes a horrible time, and there MUST be a better way.

    Open to any suggestion. Thank you

    Good, as administrator of the organization then: (I have not tried as a normal user account)

    var vdcs = new Array();
    var orgVMCount = 0;
    var vcdHost = org.getHost();
    
    var queryService = vcdHost.getQueryService();
    var expression = new VclExpression(VclQueryOrgVdcField.ORGNAME, org.name, VclExpressionType.EQUALS);
    var filter = new VclFilter(expression);
    var params = new VclQueryParams();
    params.setFilter(filter);
    
    var resultSet = queryService.queryRecords(VclQueryRecordType.ORGVDC,params);
    while (resultSet != null) {
    
        var records = resultSet.getRecords(new VclQueryResultOrgVdcRecord);
        for each (var record in records) {
            var vdcVMCount = getVdcVMCount(record.href, vcdHost);
            System.log("VDC "+record.name+" VM Count: "+vdcVMCount);
        }
        orgVMCount += vdcVMCount;
        resultSet = resultSet.getNextPage();
    }
    System.log("Total Organization VM Count: "+ orgVMCount);
    
    function getVdcVMCount(vdcHref, host){
        var vmCount = 0;
    
        var qs = host.getQueryService();
        var exp = new VclExpression(VclQueryVMField.VDC, vdcHref, VclExpressionType.EQUALS);
        var exp2 = new VclExpression(VclQueryVMField.ISVAPPTEMPLATE, false, VclExpressionType.EQUALS);
        var exps = new Array(exp,exp2);
    
        var expFilter = new VclFilter(exps,VclFilterType.AND);
        var queryParams = new VclQueryParams();
        var vmArray = new Array();
        queryParams.setFilter(expFilter);
        var rs = qs.queryRecords(VclQueryRecordType.VM,queryParams);
        while (rs != null){
            var vmRecords = rs.getRecords(new VclQueryResultVMRecord);
            vmCount += vmRecords.length;
            rs = rs.getNextPage();
        }
        return vmCount;
    }
    

    It takes a little more code because the ".ORG" field is not available for the non-Admin queryVMField, but the. VDC IS, so we start by retrieving the TDC for the Org, then for each one, ask the number of vm for VDC.

    Post edited by: Burke - had accidentally initialization of orgVMCount as new Array(); -changed second line to 'var orgVMCount = 0;

  • The most effective way to browse the similar named fields?

    Hello

    I have a 5-page document on every page that contains appx. 50 similarly named fields.    For example Viol1Num, Viol2Num, Vio3Num...  Viol50Num.

    I'm looking for an effective way to program a loop to watch each field in Javascript, I can do some manipulations in these areas on what the user has entered.

    In FormCalc, I've used the 'foreach' function similar to:

    foreach (Field1, Field2, Field3 Field50)

    "BLAH".

    ENDFOR

    However, who gets really long especially when it comes to the following pages, where I have to start adding "topmostSubform.Page2." in front of each domain name so that I can access it from the first page, all fields on the following pages.  Also, I need to do it in Javascript, no FormCalc.

    For example, in JS, I use this loop to mark all fields read-only:

    
    
    
        
    for (var nPageCount = 0; nPageCount < xfa.host.numPages; nPageCount++) {
    
    
       
    
     var oFields = xfa.layout.pageContent(nPageCount, "field");
    
    
       
    
     var nNodesLength = oFields.length;
    
    
       
    
     for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) {
    
    
       
    
    
     oFields.item(nNodeCount).access = "readOnly";
    
    
       
    
     }
    
    
       
     }
    
    
    
    

    How could I do something similar to that for I can browse each field and perform actions on it without having to list every single domain name?

    I tried to change to watch the fields instead of field properties, but I couldn't run.

    Thank you.

    I solved my problem.   It took a few fighting in javascript using xfa.resolveNode.

    I have 5 pages, each consisting of a series of 60 fields named Viol1Num, Viol2Num, Viol3Num... Viol60Num.

    If when the javascript is executed, it detects an empty field, then insert a '3' in it.

    Here it is the javascript code that runs to the second page of this document.

       While (LoopCounter< 61)="" {="">
       If ((LoopCounter! = 21) & (LoopCounter! = 22)) {}
       If ((xfa.resolveNode("topmostSubform.Page2.Viol"_+_LoopCounter_+_"Num").rawValue == null) |) ((xfa.resolveNode("topmostSubform.Page2.Viol"_+_LoopCounter_+_"Num").rawValue == "")) {
       xfa.resolveNode("topmostSubform.Page2.Viol"_+_LoopCounter_+_"Num").rawValue = 3;
       }
       }
       LoopCounter = LoopCounter + 1
       }
  • the most effective way to browse the MTS files

    I have been using mts for about 2 years now.

    When I get out of my car my camera sd I usually dump and go first.

    However, it becomes quite old and it takes a hell of a lot of time to go through 5-10 this way sd cards.

    Y at - it an application that I can use to view the mts files, as if it was a qt movie?

    with .mov can I just plug the card into my sd drive and browse in the finder. do not have to import or open a nle.

    I know that .mov is native in osx but y at - it a way to get a card that would allow my mac to treat the multilateral trading system the same?

    I think you need to CS6 for her to work.

  • Best / most effective way to use the stabilizer of the chain?

    Hi all

    I have recently updated for CS5 to CS6 and have been seriously impressed by a few test renders on shaky images using the new stabilizing Warp.

    However, a question comes to mind regarding a multi-clip (clips separated at least 24 to 30) project, I am putting together.

    Am I better take off each clip and making it its own project - stabilize then it and make it out like a clip stabilized to THEN serve in my main project (so there is no need to stabilize anything in the main project, it's already done)?

    Or should I put the project together using fragile clips and apply to stabilize at these clips in need?

    I ask only because it's likely I'll be made the main project several times I play around with things to do things (who doesn't ) and in my mind, it is wise of stabilize clips before using them in the project to reduce the time of rendering for the main project?

    Or should I just do all the stabilization in the main project?

    In short, is it better long term to stabilize before any fragile clips and make them as high as possible for later use, or simply to stabilize within the main project (which will probably eventually be made several times that I experience)

    Thanks in advance

    Clips of stabilized that many have the potential to make large enough and heavy project folder.  It may be better stabilize each clip, and then export an intermediary for use in the main project.

  • The most effective way to log data and read simultaneously (DAQmx, PDM) high data rates

    Hello
     
    I want to acquire the data of several Modules cDAQ using several chassis to
    high data rates (100 k samples per second if possible). Let's say the measurement time is 10 minutes and we got a large number of channels (40 for example). The measured data is written to a PDM file. I guess, the memory or the HARD disk speed is the limits. For the user, there must be a possibility to view the selection of channels in a graph during the measurement.

    My question: what is the best and most effective way to save and read data at the same time?

    First of all, I use an architecture of producer-consumer and I don't want to write and display the data in the same loop. I expect two possibilities:

    [1] to use the 'DAQmx configure logging.vi' with the operation 'journal and read' to write the data to a PDM file. To display the data in a second loop, I would create a DVR samples documented and 'sent' the DVR for the second loop, where the data will be displayed in a graph (data value reference). This method has the disadvantage that the data of all channels is copied into memory. Correct me if I'm wrong.

    [2] use 'DAQmx configure logging.vi', but only with the "journal" operation to write the data to a PDM file. To view the selected data, I had read a number of samples of the TDMS file in the second loop (I'm currently writing the TDMS file). In this case, I have only one copy data from the selected channels (not), but there will be more HARD drive accesses necessary.

    What is the most effective and efficient solution in this case?

    Are there ways to connect and read data with high frequencies of sampling?

    Thank you for your help.

    You say that the measurement time is 10 minutes. If you have 40 channels and you enjoy all CHs at 100 kHz, it is quite a number of values.

    In this case, I always try to approach under the conditions of use. If a measure is only 10 minutes, I just connect all PDM data and create a graphic module that could be in the same loop of consumers where connect you the data. You can always work on the raw data files big offline afterwards, the extraction of all the information you need (have a look at the product called NI DIAdem: http://www.ni.com/diadem/)

    The main issue is that the user needs to see in the graph (or perhaps a chart can be useful too). Lets say that the graph is 1024 pixels wide. It makes no sense to show multiple data to 1024 points, Yes? Every second will produce you 100 data points k per channel. What is the useful information, which should see your username? It depends on the application. In similar cases, I usually use some kind of data reduction method: I use a moving average (Point by point Mean.VI for example) with a size of the interval of 100. This way you get 100 data points of 1000 per channel every second. If you feed your graph every second with these average values, it will be able to data points in 1024 of the store (as a default) by channel (curve), which is a little more than 10 minutes, so that the user will see the entire measurement.

    So it depends on the frequency at which you send data to the consumer. For example, collect you values 1024 by iteration of the producer and send it to the consumer. Here you can make a normal means calc or a bearing (according to your needs) and he draw a graphic. This way your chart will display only the values of the last 10 seconds...

    Once I programmed some kind of module where I use a chart and not a graph, and the user can specify the interval of the absolute timestamp that is traced. If the data size is larger than the size of the chart in pixels, the module performs an average calculation in order to reduce the number of data points. Of course, if you need to see the raw data, you can specify an interval that is small. It all depends on how you program zoom functions, etc... In my case I hade a rate of 1 Hz, so I just kept all data in RAM limiting the berries to keep 24 hours of data, so that technicians could monitor the system. In your case, given the enormous amount of data, only a file read/write approach can work, if you really need access to all of the RAW data on the fly. But I hope that the values of working capital means will be enough?

  • The most effective way to import data from Excel in InDesign?

    Hi all

    I'm designing for a prospectus of college which includes 400 + courses list. For the moment, these lists exist as a huge Excel sheet with fields such as course type, course code, description, etc.

    I am familiar with Excel data import in InDesign and the tables/creation of table styles and other formatting, but the problem I have is that the data are in several columns by courses in the Excel worksheet, but will be in a single column per course with several lines in the InDesign document. I can't find a way to easily convert these columns in lines.

    Someone can help me with an effective way to get the data in the page layout without laborious copying and pasting or formatting?

    Thanks in advance!

    Hello

    In excellent paste / transpose

  • Is there a way to get the total number of samples to a TDMS file?

    I'm looking at the documentation for the function of properties Get TDMS and I see that it has a property: wf_samples which "represents the number of samples in the first data segment. Is it possible to get the number of samples in, say, the second segment of data? My goal is to get the number of samples in all segments of data for a single channel.

    To retrieve the total number of samples, I use the properties of 'NI_ChannelLength' to be linked to the function of TDMS properties get.

    The I64 outbut gives you the total number of samples of the selected channel.

    See attachment so useful

    Marco

  • Is there a way to retrieve my serial number without having to buy new?

    My old computer broke and I tried to reinstall Lightroom on my new computer. I have the disc to download, but cannot find my serial number. Is there a way to retrieve my serial number without having to buy new?

    Hi samw,

    Please follow the link below to find your serial number:

    Find the serial number of your Adobe product quickly

    I hope this helps.

    ~ UL

  • retrieve the phone number

    TelephonyManager mTelephonyMgr = (Context.TELEPHONY_SERVICE) context.getSystemService (TelephonyManager);

    Dim num = mTelephonyMgr.getLine1Number ();

    the num is proving to be null, I even used the debugger to probe each value in mTelephonyMgr, but none of them seems to contain the phone number, someone knows if it is possible to retrieve the phone number?  Thank you

    all comments are appreicated.

    Hi yuusaku,.

    Thanks for dropping by the forums!

    The telephone number through the TelephonyManager class would not be supported in the BlackBerry Runtime for Android applications by the documentation provided to during extraction: https://developer.blackberry.com/android/apisupport/unsupportedapi_blackberry10_hardware_features.ht...

  • Retrieve the model number

    To follow my state of repair, it is necessary to know your model number.

    But, I don't know.

    When I called the Technical Support I gave '6885-CTO' and I was told "this is the type of universal machine but I recover this with computer", however they never gave me the right model number.

    I searched a lot of solution to retrieve the model number.

    When I used the tool "Check Warantly State". He gave me "6885-CTO" too.

    It is also write the same model number in the "details of shipping unit.

    Find the model with the serial number?

    Should I call technical support again?

    For your information, my computer is a ThinkPad Edge E531 with an Intel Core I5 processor.

    Thanking you in advance for your help.

    (And sorry for my bad English, I'm French)

    I got my computer Friday.

    This topic can be closed.

  • No way to get the serial number Photoshop elements 13. Is it possible to study of the "getserialcode" prepaid card download.

    Hello, I bought a code to purchase Photoshop Elements, I never managed to install the software that is not saved in my account. No way to get the serial number. Is it possible to study of the "getserialcode" prepaid card download.

    When I tried again to exchange with the serial code, the message was that it was already used.

    I have the proof of purchase and the card, and I am puzzled not having is not the product that has been a major investment for me.

    Is the customer able to advise and help support Office.

    Best regards

    Customer service does not help with purchases made elsewhere nor do they help with installation problems product aged.  If the indication is that you have already used the number, it is likely, you have done but never made use of it, in which case is is you keep it for you.  Your only recourse would be with the one who sold you the card.

  • I already pay for my creative cloud through license and there is no way to find the serial number

    I already pay for my creative cloud through license and there is no way to find the serial number. I have in my account adobe my order number and everything. When I open creative cloud and install the 2 app photo and the Lr, ask me to pay again.

    Who knows something?

    Cloud programs are not serial numbers

    Your subscription to cloud shows correctly on your account page?

    If you have more than one email, you will be sure that you use the right Adobe ID?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    .

    If Yes

    Some general information for a subscription of cloud

    Cloud programs don't use serial... numbers you, connect you to your cloud account paying to download & install & activate... you may need to sign out of the cloud and restart your computer and log into the cloud for things to work

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • I have photoshop elements for Christmas 14.  When I go to install it, he invited me for a serial number which I can't find anywhere on the disc, disc sleeve or box product.  Y at - it another way to find the serial number for this product, so I can't cont

    I have Photoshop elements for Christmas 14.  When I go to install it, he invited me for a serial number which I can't find anywhere on the disc, disc sleeve or box product.  Is there another way to find the serial number for this product, so I can continue the installation?  And no, I have not installed or registered this product before.

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

    - and https://forums.adobe.com/thread/1572504

    Find your http://helpx.adobe.com/x-productkb/global/find-serial-number.html serial No.

  • The most effective way to store lines

    DB version: 10gRel2 and 11G


    If I want to keep a single column as structure, I would like to use associative arrays for performance reasons. Who is the most effective method to store a multicolumn line?


    You guys are using something like this
    DECLARE
      type v_emprec_array is table of emp%rowtype INDEX BY BINARY_INTEGER;
      v_emprec v_emprec_array;
    BEGIN
      select * bulk collect into v_emprec from emp where empno=7369;
    or this
     declare
      TYPE rec_UpdateEmp IS RECORD
               (
              Inpt_emp_id         t_InptId,
              Stat_Code               gt_StatCode,
              Tms_Proc                pa_TmsProc,
              Tms_Po_Flag             pa_TmsPoFlag,
              Sngl_Unit_Flag          pa_SnglUnitFlag,
              Pkt_Profile_Id          gt_ProfileId,
              Pkt_Type                pa_PktType,
              host_inpt_id            pa_HostInptId
              );
              
          rec                         rec_UpdateEmp;
      

    Ref Cursor is a better option

    create or replace procedure emp_dtls
    (
     p_sal number,
     p_result out sys_refcursor
    )
    as
    begin
     open p_result for
      select ename,sal from emp where sal>p_sal;
    end;
    /
    
    SQL> var myvar refcursor
    SQL> exec emp_dtls(2000,:myvar);
    
    PL/SQL procedure successfully completed.
    
    SQL> print myvar
    
    ENAME             SAL
    ---------- ----------
    JONES            2975
    BLAKE            2850
    CLARK            2450
    SCOTT            3000
    KING             5000
    FORD             3000
    ADAMS            7654
    

Maybe you are looking for