part of string

[email protected]; [email protected],
If I want only the first part of the string, I meant before;
This divide is the only way to handle this case?

And again I would use the split function.

Split first create an array of e-mail addresses, and then sort the array.
Loop in the table and see if the previous email is equal to the current e-mail in array index.
Something like that.

& test = [email protected]; '[email protected];[email protected] ';
& Table = Split (& test, ";");
& array extinguish ("A");

for & i = 1 to & table. Len
& email = & array [&i];]

If & I =! 1 then
If & prevemail = & email then
/ * Duplicate e-mail address found * /.
end - if;
end - if;

& prevemail = &email;

-end;

Tags: Oracle Applications

Similar Questions

  • RS232 output Module - checksum on the part of string

    I am short of DASYLab 11 and try to write a set value of a Eurotherm temperature controller via the AE-BISYNCHRONES on RS232 Protocol. To do this, I have send some control characters as well as the address of the unit I'm dominant, then the a few characters command and the new set point, then a checksum XOR of the second part of the string (control characters + new set point). I can't find a way to do it, as the format /cx command gives the checksum of the entire string. I tried to place the first part of the string in the channel, the second part and the trainer of checksum in channel two, and then click sequential output, but that has not worked. Someone at - it any other ideas?

    Thanks for your time!

    What happens if you do it this way?

    RS232 output configuration with 2 channels.

    Channel 0 is... the entrance is from a module variable overall reading that has the unit number (11).

    Channel 1 is this--it would come a slider or other inputs.

    When I look at my serial port monitor, I get this... hex on the left, to the right ascii...

                 

  • How to copy the piece of string to an enum in the part of string in a cluster?

    I want to do all of an array of clusters.  I am using a loop for.  Can not find a way to analyze in chain of the enum in the part of the chain of the cluster.

    Otherwise, I'd be happy if I could find some way to bind the enum in the table of clusters, but I think that becomes problematic.

    DH

    Dark Hollow says:

    OK, let's say that the enumerated type has N elements.  I want to initialize an array of N elements of strings.  How refers to each string in the enumerated type for each channel?

    An easy way to do this is to use GetNumericInfo.vi, part of the library of variant, found in vi.lib\utility\VariantDataType\GetNumericInfo.vi.  Wire your enumeration to the variant of entry; one of the outputs is an array of strings in the enumerated type.

    The most complicated way is a loop for, in which you convert the Terminal value of the iterator to the enumerated type, then use the value of Format.  You can get the maximum value from the enumeration by casting for the enumerated type 0, and then decrement. Add-on to get the right value to wire the terminal n and climb back to a digital.

    EDIT: just thought I would add, since the response of the RavensFan popped up while I was writing me - I don't like the approach of [] channels because it does not work on the objectives of the RT, and I lost a lot of time once because of this, trying to figure out why my code wouldn't run correctly on a system RT but worked fine on my development computer.

  • Compare the part of string with a string regardless of the position

    Hello team,

    I'm trying to compare a part of the A string to another string B, regardless of the position of the substring has b;

    for example B = 'g hitpp ert' B = ' erfg gret hitpp'

    If I try substr (A, 1, 7) = substr (B, 1, 7), it will be false

    However, I would check that, if the characters first seven 7 a [substr (A, 1, 7)] are found in the B channels any position, they are.

    Hello

    2986888 wrote:

    Hello team,

    I'm trying to compare a part of the A string to another string B, regardless of the position of the substring has b;

    for example B = 'g hitpp ert' B = 'erfg hitpp gret.

    If I try substr (A, 1, 7) = substr (B, 1, 7) going to be false

    However, I would check that, if the characters first seven 7 a [substr (A, 1, 7)] are found in the B channels any position, they are.

    One way to do that is

    ...

    WHERE b LIKE "%" | SUBSTR (a, 1, 7). '%'

    What you can do with AS you can also do this with REGEXP_LIKE, but in this case it will not significantly (as appropriate) more simple, and it will be less effective.

  • updated part of string in columns

    have more than 10000 records in a column where I need to update a part of the e string, g

    name
    -----------------------
    123abc
    345abc
    678abc
    23456abc

    update of the 'abc' with 'def '.

    after update

    name
    -----------------------
    123dEF
    345def
    678def
    23456def

    Maybe something like that?

    SQL> drop table test;
    
    Table dropped.
    
    SQL> CREATE TABLE TEST(NAME VARCHAR2(50));
    
    Table created.
    
    SQL> INSERT INTO TEST VALUES('123abc');
    
    1 row created.
    
    SQL> INSERT INTO TEST VALUES('345abc');
    
    1 row created.
    
    SQL> INSERT INTO TEST VALUES('678abc');
    
    1 row created.
    
    SQL> INSERT INTO TEST VALUES('23456abc');
    
    1 row created.
    
    SQL> SELECT * FROM TEST;
    
    NAME
    --------------------------------------------------
    123abc
    345abc
    678abc
    23456abc
    
    SQL> UPDATE  TEST
      2  SET     NAME = TRANSLATE(NAME,'abc','def');
    
    4 rows updated.
    
    SQL> SELECT * FROM TEST;
    
    NAME
    --------------------------------------------------
    123def
    345def
    678def
    23456def
    
  • How to get the part of string before and after a character

    Hi all

    How to get the string before and after the comma character)

    Ex: The string contains the value John Kennedy

    I need the output as first stirng - John

    Second stirng - Kennedy

    Create table names (fullname varchar2 (20));

    insert into values of names ("John, Kennedy");

    insert into values of names ("papa ibra, Shan");

    insert into values of names ('Don Bosco'),

    Select * from names;

    Expected results

    FullName firstname lastname

    John, Kennedy John Kennedy

    Nicolas, Nicolas Shan Shan

    Don Bosco Don Bosco

    Please let me know how to proceed

    Thank you

    Hello

    This proves what I said before, on 0 and several commas commas.

    If we add these 3 rows to the sample data you posted:

    insert into names (fullname) values ("tou").

    insert into names (fullname) values (' David, Lloyd, George ");

    insert into names (fullname) values ('J, R, R, Tolkien");

    then the query I posted earlier produced these results:

    FULLNAME FIRSTNAME LASTNAME

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

    John, Kennedy John Kennedy

    Nicolas, Nicolas Shan Shan

    Don Bosco Don Bosco

    TOU tou

    David Lloyd, George David Lloyd, George

    J, R, R, Tolkien J R, R, Tolkien

    If you prefer to get these results:

    FULLNAME FIRSTNAME LASTNAME

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

    John, Kennedy John Kennedy

    Nicolas, Nicolas Shan Shan

    Don Bosco Don Bosco

    TOU tou

    David Lloyd, George David, Lloyd George

    J, R, R, J, R, R Tolkien Tolkien

    then you just change line 1:

    WITH got_commapos AS

    (

    SELECT FullName

    , INSTR (fullname, ','-1) AS commapos-* CHANGED *.

    Names

    )

    SELECT FullName

    , SUBSTR (fullname, commapos 1, -1) AS a first name

    SUBSTR (fullname, commapos + 1) in the FORM name

    OF got_commapos

    ;

  • Extract part of string - tips

    Hi using oracle 11.2.0.3 and looking at the code of someone else

    Folling sql
    SELECT cd_customer_num,cd_postcode,rtrim(substr(CD_POSTCODE, instr(CD_POSTCODE, ' ') + 1), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') postcode_inner
    from customer_details_stg2
    where length(cd_postcode) = 7
    This code works for almost all postal codes - attempt is to get the first digit after the space or spaces (maybe two space betwene dfirst and second part of the post code)

    for example

    Ip4 1AE gives Interior zip code 1 but postcode DI2 4R1 gives postcode_inner 4R1

    Not quite sure how above work understand instr, substr etc. but bot of course how the ABC... etc gives good results in most cases.

    A tips on how to get the first digit after the space or spaces and make sure that it is only a length of 1.

    Thank you very much

    A quick and easy solution would be to change the command SUBSTR to take only 2 characters, because I believe that British postal codes can have only up to two numbers after the space:

    substr(CD_POSTCODE, instr(CD_POSTCODE, ' ') + 1, 2)
    

    You can also replace all with REGEXP_SUBSTR command:

    TRIM(REGEXP_SUBSTR(cd_postcode, ' [^[:alpha:]]+'))
    

    which will allow to use all the numbers that occur after the space and before any alphabetical character

  • create the string in the array item

    Problem... I want to create a unique string item. My entry is an array of integers 1 d of two elements, for example (10, 5) and the output should be a part of string in the form of "10.5." Just a single item and not a table. Any tips or ideas?

    Thank you!

    Table in spreadsheet string.

    You may need to remove the character from end of line that arise.

    Alternatively, if you know it's always 2 items.  Index table and food for both outputs in Format to a string with %s, %s format code.

  • Read from String

    Hi all

    The question I have is probably very trivial, but I apparently I'm stuck with it. The task that I am doing is to transfer a 'string data' that I get from reading via RS232 port of a controller of movement (relative coordinates of the position of the engine), in a table, so I can use it following the curve of the path. The chain is as follows:

    TPM: * TPM + 1274.36, + 0, + 0, + 56.149

    and I want two of these four numbers in the data file, something like this + 1274.36, + 56.149, by rank

    When I put 'write LVM' express VI and wired it "read rs232" to "signal in VI" me gives error that the data do not match. I therefore feel that the string must be changed somehow before it can be written in the data file.

    Can someone help me with this problem please?

    Thanks in advance

    It's my VI:

    You will need to use a function such as match on the palette of the string pattern.  Would be the model to look for the TPM secure: * party TPM assuming that is common on all lines of incoming data.  Then write the part after string matching in a text file.

    Since you just want to write the data to a text file, do not use the file function measure Express.  That really does work well if you already have a data type of 'Signal' as those coming from other Express VI.  Just use functions open close text, write files, in the range of file IO instead.  Search for Finder example for some examples.

  • Dynamically change the color of the text substring

    Hello!

    I'm working on a simple serial terminal and I would like to change the color of each line depending on whether the message is sent or received. I have an indicator of string in which I add all messages, sent or received.

    My problem is that when I change the color of a substring by using a property node, all the text in my chain indicator changes. Here is a small Video that shows my problem (my real VI is a little too big to put here but the part of string works the same. I concatenate, keep the clues and apply the property node):

    Result:

    Any idea on how I could change the color of the new line? It seems the selection doesn't really work, because everything in the chain takes the new color.

    Thanks in advance,

    Tim

    PS: I've seen a web-based solution in which the property node must be extended for every line, of course it does not work for me as the number of lines changes dynamically.

    The problem you have is that the string contains no format information and it does not keep the indicator.  You will need to set the font.color in each line, each time you receive a new message.  See my post here - http://forums.ni.com/t5/LabVIEW/Different-fonts-in-string-indicator/m-p/1601602/highlight/true#M5823...

  • Table 1 D (Double) in a menu drop-down

    Hello together,

    I would like a transfer of table 1 d to a drop-down.  Is it possible?

    Greetings

    Peter

    LV2011

    You must use the [] strings or property [] strings and values in the drop-down list, depending on what you want the value of the drop-down list to return. The part of [] strings returns the text you see when you click on the control and display the drop-down list. The fact Values [] property refers to the value that is returned when a selection is made. Normally, it is an integer value that refers to the index. You can return a different value if you wish, but you must explicitly set.

    Ownership chains [] is just a 1 d of string array. So, you can simply use string functions to convert your table to an array of strings and that thread then the property [] Strings.

    String [] and [] values property is an array of clusters. You would have to combine a string (the text) and the value in a cluster and then set up a table. Indexing for auto-loop is the easiest way to do this.

    If you do not undestand what an autoindexed of the loop is, or what group is, then you need to spend time in the LabVIEW tutorials. To learn more about LabVIEW, it is recommended that you go through the material in the introduction, tutorials and other material in tutorials the NI Developer Zone Learning Center , which provides links to other materials and other. There are also several technical resources. You can also take a course online for free.

  • Location of menu items

    Hi all.

    I know how to locate my menus, but what about this scenario:

    (1) I create an application in A locale (where A is not part of the set of supported regional settings)

    (2) I would like to insert a menu to the native menu of ApplicationMenuItemRepository.MENUITEM_ALARM (for example) item

    Now. I would now like to the locale of the string element of menu "Change Date/Time.

    Basically, I need to be sure that exactly, item of menu "Change Date/Time" is not in the list of MenuItem, but I can't count on the string itself (or can I?)

    So is there any ID MenuItem (menus natives) the bb device uses to retrieve a translation of its resources that I could use so I don't have to depend on the location?

    (I know I could store the string 'change Date/Time' in all languages supported (somewhere around 20 that I counted the bb JDE 4.5.0 API documentation) then try to match, but what happens if bb begins taking over several languages?)

    Thank you

    It's not a BlackBerry API to do this directly.  You could use Locale.getDefaultForSystem () to the current active local setting on the BlackBerry.  This could eliminate a part of string matching you (only search with the colloquial).

  • What to put in the xsd schema for the form of the ADF radio buttons?

    Hello, we create a form generated from the data of a HT ADF auto which is a type defined in a schema .xsd. Which schema component Let's in the .xsd schema correspond to buttons option in the form of the ADF? For example, in our .xsd we just

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < xsd: Schema container = ' http://www.w3.org/2001/XMLSchema "xmlns:wf =" " http://www.example.org "

    " targetNamespace = ' http://www.example.org "elementFormDefault ="qualified"> "

    < xsd: complexType name = "FormDataType" >

    < xsd: SEQUENCE >

    < xsd: element name = "FirstName" type = "xsd: String" / >

    < xsd: element name = "Name" type = "xsd: String" / >

    < xsd: element name = "Department" type = "xsd: String" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: Schema >

    What would be the element / type etc be for radio buttons?

    Hi Tali,

    It depends on what you want to do with radio buttons, but it would be better to be a part of string in most cases.

    This could be better handled on the ADF OTN forum, but I'll take a shot at it.  If you have many items to choose from, you can use the string "Department", you already have in your XSD.  When displayed on the form, include various departments with radio buttons next to each other (for example,"manufacturing", "Marketing", "Sales").

    Because this is the BPM forum, I guess your XSD is used as data for a human task which in turn used to create a form of the ADF.  If this is the case, you can use your "Department" in your XSD string element that has already been placed on your form as a text input field.  The reason is the link that you need to update the element of the human task service is automatically created in this way.  Select this field to text, and then in the properties panel, copy the text that is in the 'value' of the field (you stick it in the Value property of the Radio group you will add in the next step).

    There are two ways to get the radio buttons on the form.  You might drag the "Radio group" widget on the form-> click on radio to 'Create a list (select an item)' button-> click the Add icon to add the choices you want to appear on the form (for example,' manufacturing ', 'Marketing', 'Sale').   Once this was added, paste property value text you copied in the previous step into the field of "Value" property of the new Radio group.

    If you select the radio button of the new group source, it should look like this if you wanted two choices for your radio buttons:

    After this has been added, delete the existing text entry field that was created when the form was generated automatically from the human task.

    Hope this helps,

    Dan

  • Understanding stored procedures

    Hello

    Oracle 11.2.0.0.2

    I am trying to learn how stored procedures to use them later in the future web applications.  I was going through some documentation and found a simple stored procedure and I just wanted to see if someone could help to clarify if I understand how this stored procedure is supposed to work.

    TRIGGER XXX_TEST CREATE create a trigger with the name of XXX_TEST

    BEFORE INSERT Execute the trigger before it runs the command INSERT

    ON f.w5 FOR EACH ROW, do something "for each line' which is 'on' the table w5 belonged f schema

    START the starting point of the orders which will take place within this block

    Select count (1) IN the rt of 1934_e.doc where: new. U0 = docnum and 'AA' = a1 and a2 = 'DR' and a3! = « Z »)) ; Select all the records and put new 'in' the variable doc table belonging to f, where rt. U0 variable equals the docnum and column a1 is equal to 'AA' and column a2 is equal to 'DR' and a3 is not equal to 'Z'

    IF rt > 0 THEN conditional statement, if the rt variable is greater than 0, then below that

    : new.pt: = 9 | substr (PT 2);  concatenation of the variable which is set to match the 9

    : new. U1: = 'UNFAIR ';  sets the variable: new. U1: equal to 'EVIL'

    END IF;  end of the conditional statement

    delete from f.w5 where substr (pt, 1, 1) = 9 and U1 = "UNFAIR."  delete records from table w5 belonged to f where substring value 9 starting at position 1 with a length of 1 is equal to 9 and U1 is equal to 'FALSE'

    END;  the point of arrival of the "BEGIN"

    The part that I'm not sure of is the IF / END IF block.  I read that the | means the concatenation, but I don't really know what or why it is concatenation.  Another explanation is appreciated!  Thank you.

    Hello

    You have understood about correctly.

    There are many errors in this code.  For example, he referred to the local variables, rt and pt, but these variables are not defined anywhere.  For example, in the assignment you intrigued plus:

    : new.pt: = 9 | substr (PT 2);

    : NEW.pt initially made reference (rightly) of a column in the current insertion, but pt near the end line (without: NEW.) reference a local variable and I do not see where all the local variables are currently reported.  Perhaps the one who wrote this means use; NEW.pt in both places.

    SUBSTR (pt, 2)

    means the part of string pt starting with his 2nd character, so

    '9' || SUBSTR (pt, 2)

    a copy of the pt, but with its first character replaced by "9".

    Why the trigger would do this?  Your guess is as good as mine.  Apparently, the pt of the column is a kind of code, and the first character of the code is supposed to be "9" If there is no line in the table corresponding to the column of u0, doc and met certain other conditions, at the point where this line was inserted.

    (The | operator expected strings before and after it.)  If you use a NUMBER, such as 9, in a place where one expects a string, such as '9', Oracle will automatically convert the NUMBER to a string, but it is advisable to use the correct data in type.)

    Moreover, another error in this trigger is that he tries to DELETE rows from the same table that is based on.  A FOR EACH ROW trigger on tble f.w5 can't even read other f.w5 lines, let alone delete them.

  • Reg: regexp_replace-

    Hi Experts,

    I try to extract only the first word and the last word of a string given... but not able to do this correctly.
    Is someone can you please tell me where I make the mistake?

    My 2nd part of string that is a2 takes the rest of the string (after the first word i.e. a1)

    SQL> with xx as (   2        select 'John Smith' fnm from dual union all   3        select 'Charles Daimond' from dual union all   4        select 'TransAtlantic Services ABC' from dual union all   5        select 'Sachin Ramesh Tendulkar' from dual union all   6        select 'John T. Smith' from dual union all   7        select 'Joseph Ralph Anthony Smith' from dual   8  )   9  select 10      fnm, 11      REGEXP_REPLACE(fnm, '^([^ ]*)(.+)([^ ]?)$', '\1') a1, 12      REGEXP_REPLACE(fnm, '^([^ ]*)(.+)([^ ]?)$', '\2') a2, 13      REGEXP_REPLACE(fnm, '^([^ ]*)(.+)([^ ]?)$', '\3') a3 14  from xx; FNM                                      A1                  A2                  A3 ---------------------------------------- -------------------- -------------------- -------------------- John Smith                              John                  Smith Charles Daimond                          Charles              Daimond TransAtlantic Services ABC              TransAtlantic        Services ABC Sachin Ramesh Tendulkar                  Sachin                Ramesh Tendulkar John T. Smith                            John                  T. Smith Joseph Ralph Anthony Smith              Joseph                Ralph Anthony Smith 6 rows selected.

    -Nordine
    (on the Oracle 11 g Enterprise Edition Release Database * 11.2.0.2.0 *-64 bit Production)


Maybe you are looking for

  • Adding hyperlinks to a word in an e-mail message

    In older versions of Thunderbird, I was able to select a Word and insert a link, I could add a hyperlink to that Word.Once completed, the word would be blue and could be clicked after which I would be brought to a Web site.Now, this no longer works.

  • How can I configure my chosen default font?

    How can I configure my cast chosen to send e-mail messages to the default position in order to avoid selecting each time?Any help for a novice like me would be appreciated.Thanks in advance.

  • Can not get EtherCAT (9144) to recognize CAN module (9853)

    I have a cRIO system which consists of a RT 9024 controller in a chassis 4 slots and a separate, distant 9144 chassis EtherCAT 8 locations.  The 9144 has the usual assortment of, AO, modules etc., and it also includes a CAN of 2 ports 9853 module.  W

  • Error 42060 on my. XP Pro

    How can I delete my XP Pro 42060 error?

  • Agent properties is not displayed in Foglight Console

    Hi all.. We are facing some problems with the dashboard properties Agent because he receives any shown in the Console... Please help us to solve and try to understand the problem. Kind regards Guenoun