integration of values in the array

Hi all

The below value comes from the other table

AMERICA STRIPE 54 X 95 DOUBLE/INTER NLP-CCC-NEW GOLD/SOFT GOLD

a: = AMERICA

b: = STRIPE

c: = 54 X 95

d: = RESTRAINED / INTER

e: = NLP-CCC-NEW

f: = GOLD GOLD/SOFT

And I need to insert all 6 columns in the XXC_ABC Table (assume that a, b, c, d, e, f are the columns)

Conditions: -.

----------------

If c: = 54 X 95 (if with X) sort, display the d value is 'DOUBLE', if it is not "INTER".

If value c is with 3 X 5 then also same condition, if no X the screen as the value of the column "INTER".

same f value also

Thank you

You must leave str as the entire string, not little by little as you did in your insert statement:

SQL > WITH input_string AS (SELECT ' AMERICA STRIPE 54 X 95 CLAMPED / INTER NLP-CCC-NEW GOLD/SOFT GOLD' FROM DUAL str)

2. SELECT

3 regexp_substr (str, ' [^ [: space:]] +', 1, 1),

4 regexp_substr (str, ' [^ [: space:]] +', 1, 2) b.

5 regexp_substr (str, ' [^ [: space:]] +' 1, 3) c,.

6 BOX WHEN regexp_substr (str, ' [^ [: space:]] +' 1, 3) LIKE '%x % ".

7. THEN regexp_substr (regexp_substr (str, ' [^ [: space:]] +' 1, 4), "[^ /] +'")

8 ELSE regexp_substr (regexp_substr (str, ' [^ [: space:]] +' 1, 4), "[^ /] +' 1, 2").

9 d of END,

10 regexp_substr (str, ' [^ [: space:]] +' 1, 5),

11 BOX WHEN regexp_substr (str, ' [^ [: space:]] +' 1, 3) LIKE '%x % ".

12. THEN regexp_substr (regexp_substr (str, ' [^ [: space:]] +', 1, 6), "[^ /] +'")

13 ELSE regexp_replace (str, ' ^. + /(.+) $', '\1')

14 END f

15 FROM input_string

16;

A       B      C     D     E           F

------- ------ ----- ----- ----------- ---------

AMERICA 54 X 95 BROADSIDE NLP-CCC-NEW GOLD STRIPE

SQL >

Tags: Database

Similar Questions

  • Is it possible to connect a simple 1 d array to a digital indicator or what would be the best way to display the numeric values of the array on the front panel?

    Is it possible to connect a simple 1 d array to a digital indicator or what would be the best way to display the numeric values of the array on the front panel? Examples or suggestions would be greatly appreciated.

    Thank you

    Tunis

    Thank you Adam, it's originally in a while loop, I placed it in a loop for example, wired County in the for loop and presto, this son of a digital indicator. It works very well. Thanks for the help folks.

  • Change the value of the array element without using the keyboard

    I have a control array on my front, say 1 d, 10 items.

    In addition, the front panel should be used with a touch screen, so I have a Subvi keyboard that should be called when I choose one of the elements of the array.  Therefore, no keyboard entry is allowed.

    My question is, how can I determine which element that the user hit/clicked?... .and how to change this value?

    -Mike

    Gents nevermind, found a way to emphasise that if this is the best way, but I got it.

    In my structure of the event, I have an event looking for the mouse event down in regards to the control array.  This event triggers my screen touch keyboard Subvi to fire, and the closure of the Subvi I pass its value to the ArrElem.Value property to assign the table a hit/clicked item.  Works.

    -Mike

  • Count of values in the array

    Hi, I believe that it is clear as the sky, but I can't seem to solve.

    I have a 2D chart filled with random numbers. I need to create a table 1 d representing the frequency of occurrence of these figures.

    For example: my 2D table has number between 1 and 100, and I want to check how many times the number 25 appears. I need my table 1 d to show this value according to the index of 25.

    Thank you very much

    Looking for functions of mathematics-> Prob & Stat palette histogram.

    Oh and reshape the array of programming-> Array, change your table table 1 d 2d

  • Using the value in the array to the variable of reference - need help

    Can someone tell me if this is possible in as3?

    I want to loop through an array and use the array value to refer to a variable.

    The installation program:
    (For illustration only. No real script)

    My MCs:
    triangle_mc
    square_mc

    Variables of placement:
    var triangle_mc_x = 160;
    var square_mc_x = 200;

    My table:
    [shape_array] (contains 'triangle_mc' and/or "square_mc")

    What I want to do:

    for each {(var: chaîne d'élément dans shape_array)}
    Item.x = Item + "_x";
    Item.y = 60;
    }

    It should do the same thing as:

    for each {(var: chaîne d'élément dans shape_array)}
    If (point == "triangle_mc") {}
    triangle_mc.x = triangle_mc_x;
    triangle_mc.y = 60;
    }
    If (point == 'square_mc') {}
    square_mc.x = square_mc_x;
    square_mc.y = 60;
    }
    }

    Thank you!

    I think what you are after...

    for each {(var: chaîne d'élément dans shape_array)}
    This [point] .x = this ["_x" + point];
    This point there = 60;
    }

    Although I have zero degrees of ease with this form of loop for... I was born and raised on the (I =?; I)

  • Referencing of the values in the array Collection?

    I use a remote object to pass an argument to a CFC. I then query a table based on the value of the argument past ("where" clause). I have to return a single record result as an application in Flex (event.result) and set it as a Collection of table, example:
    myAC = new ArrayCollection collection;
    myAC.source = event.result as Array;

    I can take this AC and set it as a dataprovider to a DataGrid or a list without problem. What I want to do is to extract specific data from HQ and use it in my Flex application. For example, the results of my query will return 1 record only, but it contains a lot of columns in my table. It may contain an ID, a user name, a first and last name, perhaps a phone, etc. All of this information so that only the record will be stored in the collection of table. I want to do is be able to reference these data in Flex.

    For example, if I need to post (stored under the telephone number of my request) phone number in the collection of table, how can I do this? myAC.phoneNumber? myAC.getItemAt (0) .phoneNumber?

    Any guidance is appreciated

    I'm not sure to deal with a remote object / CFC configuration, but if your collection is largely as:

    var myAC:ArrayCollection = new collection ArrayCollection ([{name: "first", phone number: '555'}]);

    Then Yes you should be able to access it with:

    myAC.getItemAt (0) .phoneNumber

    I take it not worked?

  • How to change the value of the array element by using the property node

    Hello all :)

    IM using a table in the drop-down list box. the size of the array is not fixed.

    I want property strings [] from the drop-down list box to enter text in selection, but since I placed it inside the table im unable to use this property.

    I used 'arrayelem' reference property and property node connected to it but got no strings [] in the selection.

    so is it possible that I can use property strings]


  • Values in the array of Booleans to dictate the output to be Boolean False or Boolean True

    I have a pretty simple question that I have a problem to solve.

    I'm looking to enter a Boolean array for a sub - vi that will take this table and dictate a single boolean output Boolean false or Boolean True.

    For example, the table will be table boolean 1 d, with a depth of 2 index values.

    -If the two index values are wrong then the sub - vi will kick for a False value.

    -If the two index values are true then the sub - vi will kick on a True value.

    -If an index value is True then the sub - vi will kick a True value.

    Any ideas?

    Thank you.

    jonathanupr wrote:

    -If the two index values are wrong then the sub - vi will kick for a False value.

    -If the two index values are true then the sub - vi will kick on a True value.

    -If an index value is True then the sub - vi will kick a True value.

    It sounds like an RC for me

    jonathanupr wrote:

    For example, the table will be table boolean 1 d, with a depth of 2 index values.

    I don't know what you mean by that.  How you choose to use indexes?

    EDIT: Perhaps you need some Elements of array or

  • How to get the total value of the array in a variable

    Hello

    Can you please let me know how can I store the value of a field in a column of advanced Table. I want this value for my validation. I tried looking on the forum under code... but it is not workng

    OAAdvancedTableBean distTable = (OAAdvancedTableBean) webBean.findChildRecursive("distributionRN");
    If (distTable! = null) {}
    OATableFooterBean distTableFooter = distTable.getFooter ((OATableFooterBean));
    If (distTableFooter! = null) {}
    Total OATotalRowBean = distTableFooter.getTotal ((OATotalRowBean));
    String value = total.getText ();
    System.out.println ("value" + value);
    System.out.println ("total" + total);
    }
    }

    The code above prints:

    null value
    Total OATotalRowBean, localName = 'totalRow.

    So basically getText() is nt working. Please suggest and thanks in advance.

    Mark answers as Correct or relatively useful so that others can take advantage of.

    Thank you
    Gerard

  • To change a value in the array of the HR user API hooks API - can I use?

    I am trying to initialize a descriptive flexfield on per_all_people_f. I tried initially to do initialization using a database trigger "before inserting line" directly on the table. per_all_people_f seems to work perfectly in the form of people (PERWSHRG), but doesn't seem to work constantly when a new employee is entered into a model as employees enter (PERWSQHM).

    Does anyone know if you can use a hook of user API to initialize a value on an API tables o is the insertion? For example, could put a user hook "before the process' on the 'Create_ employee' API to change the value of a descriptive flexfield?

    Other good ideas?

    Currently I have a concurrent application which runs once every 30 minutes by default the descriptive flexfield. The delay is causing issues.

    Yes, API user hooks are not good to make updates. Has a database trigger that updates the person table in an API call which also updates the person table is not advisable and development Oracle would not encourage him: the person API is complex and could (even if it is not now) substitute, regardless of your prior release don't (API retrieves first the old values which is in front of your trigger fire and uses as the basis for updating).

    Would you rather write a simple simultaneous program that covers everyone who did not have this value set and default it? In this way there is no risk of your substance interfering with the standard Oracle stuff (and vice versa).

  • Remove the array without the local Variable element

    I am wanting to know if you can remove an element of an array, the index of the removed part.

    and update the value in the array to not include the deleted part of a more direct way than the following:

    Or, in my program, the table is initialized with some clues that makes the task of removing an element of

    table, the part removed from indexing and updating the table includes only not the deleted part similar to the following:

    (a) is there a way to do this without having to use local Variables?

    (b) I would be so concerned to rid my program of all local Variables? (even those who don't create race conditions)

    Keep the table in a feedback node initialized in the world. Do not imply not objects of façade.

  • I can't save the numeric values in the table

    When I close the program and run it again, all the values in the array are initialized to zero. I want to have the same previous values that I entered the table before.

    Thanks for your help!

    "' If you still want the same values at the beginning, simply enter all the values in the controls, the ' edit..make the current default values. Save the VI.

  • ' If the values of the left ".

    I have 4 textfields and I want to make sure that they are filled from left to right.  I created the following script:

    var mipField = ['OPE003. EVEN.1.MIP', 'OPE003. EVEN.2.MIP', 'OPE003. EVEN.3.MIP', 'OPE003. EVEN.4.MIP"];
    cItem var = «»
    var mipArray = new Array();

    Creating a table of values "not null" field
    for (i = 0; i < mipField.length; i ++) {}
    cItem = this.getField(mipField[i]).valueAsString;
    If (cItem! = "") {}
    mipArray [mipArray.length] = cItem;
    }
    }


    Empty fields
    for (i = 0; i < mipField.length; i ++) {}
    this.resetForm (mipField [i]);
    }


    Copies values from the array to the fields
    for (i = 0; i < mipArray.length; i ++) {}
    this.getField(mipField[i]).value = mipArray [i];

    }

    for some reason any I get a "invalidSetError" that calculate the script, when it comes to the part of copy.  I didn't undestand what is the problem.

    I changed the code to:

    var mipField = ['OPE003. EVEN.1.MIP', 'OPE003. EVEN.2.MIP', 'OPE003. EVEN.3.MIP', 'OPE003. EVEN.4.MIP"];
    cItem var = «»
    var mipArray = new Array();

    Creating a table of values "not null" field
    for (var i = 0; i)< mipfield.length;="">
    cItem = this.getField(mipField[i]).valueAsString;
    If (cItem! = "") {}
    mipArray [mipArray.length] = cItem;
    }
    }

    this.resetForm (mipField);

    for (var i = 0; i)< miparray.length;="">

    this.getField "(OPE003. SAME. » +(i+1) + ». MIP') .value = mipArray [i];

    and he moved to the event of blur instead of the calculate event.  I guess that the closure of a script to change the values in a calculate event was the problem, since the calculate event is triggered by changing the values.  It must have caused a circular patern.  It works now.

  • a problem in passing multiple values in the loop settings for

    Hi all

    I am facing a problem in passing multiple values in the loop settings for.


    EX:

    CREATE or REPLACE PROCEDURE (pr_id OUT NUMBER) HAVE


    tab type is table of NUMBER;

    TEMP_TAB TAB;

    BEGIN

    Select the COLLECT LOOSE pr temp_tab pr_id;

    I'm in 1.TEMP_TAB. loop of COUNTING

    PR_ID: = temp_tab (i);

    end loop;

    END TEST;

    OUTPUT:-

    pr_id = 234578


    in the example above, I'm only a value as an out parameter. but I send you PR_ID of the loop.
    why I don't get all the values that the parameters.please offer a solution for me.

    Thank you my friend.

    More clarification, let's look at your code...

    -- create a procedure and have a single numeric out variable
    CREATE OR REPLACE PROCEDURE TEST ( pr_id OUT NUMBER ) AS
      -- declare a type as an array of numbers
      type tab is table of NUMBER;
      -- declare a varianble of that array type
      TEMP_TAB TAB;
    BEGIN
      -- query all the values from the table into the array
      select pr_id BULK COLLECT INTO temp_tab from pr;
      -- loop through each value in the array
      for i in 1..TEMP_TAB.COUNT loop
        -- set the value of the single OUT parameter, OVERWRITING any previous value it has
        PR_ID := temp_tab(i);
        -- loop around to the next value
      end loop;
      -- end the procedure with the final value of PR_ID
    END TEST;
    
  • Type a table defined clusters to hold configuration data - definition of default values for each element of the array

    Hello

    I was wondering if I could get some information and opinions on the use of an array of type defined clusters to store configuration data.  I am creating a program to test several EHR and wanted to have a control of type defined for each HAD with the information needed to create the DAQmx tasks for all signals for it must HAVE.  I am eager to do so that the data are encoded in hard and not in a file that the user might spoil.

    Controls of type def are then put into a Subvi who chooses as appropriate, one based on the enumeration of Type DUT connected to a case structure.

    I have problems with the control of the defined type.  I see issues when you try to save a configuration unique to each element of the array in the array of clusters.  Somehow, it worked at first, but now by clicking on "Operations on the data--> default font of the current value ' on individual elements of the cluster or the entire cluster (array element) does not save data when I re - open the command def.  What I am doing wrong?  I'm trying to do something with the berries of the clusters that I shouldn't do?

    I enclose one of the defined reference type controls.  I tried to change it bare to see if that helped, but no luck.

    To reproduce, change the resource string for the element 0 of the array and do the new value by default.  Then close the def of type, and then reopen it.  The old value is always present in this element.  The VI is saved in LabVIEW 2012.

    The values of a typedef are not proprigated to the instances of the control. They get if created WHEN data values have changed. They will be not updated with the changes to come. You must create a VI specifically to hardcode your values or to implement a file based initialization. The base file would be much better and more flexible. If you don't want users to change the data simply encryption. There is a wedding blowfish library that you can download.

Maybe you are looking for