Syntax to check whether an item contains a particular value

Hello
In my rtf model, I'm changing the background color according to the value of a security of people. I am unable to verify the exact values, but all of the titles are the same, but contain the same value in the full title (e.g. Secretary main vs vs Support Secretary Executive Secretary). So instead of checking where TITLE = 'Secretary', I need to know how to check where the TITLE contains "Secretary". I don't understand the syntax.
Any help would be appreciated!
T

One way is to test instring Secretary.

InStr('abcabcabc','a',2)
The instr function returns the location of a substring in a string. The syntax of the instr function is:

InStr (string1, string2, [start_position], [nth_appearance])

string1 is the string to search for.

string2 is the substring to search for in string1.

start_position is the position in string1 where the search will begin. The first position in the string is 1. If the start_position is negative, the function account back start_position number of characters from the end of string1, then research toward the start of string1.

nth appearance is the appearance of Nth of string2.

Tags: Business Intelligence

Similar Questions

  • How to check if a table contains a table

    I have an array array1 say array that contains several tables. I have another table say array2. Now, I want to check whether or not arrray1 contains array2. How can I check this?

    The way hard and obvious, but as strcmp(), you can move to the table following once you are unable to find a match.

  • Check whether a control is a context of sequence

    Hello

    In one of my projects, I have to check whether a control is a context of sequence control. This can be done using the properties as the "Classname" of control. That's why I'm conversion of the control of reference to the variant and help 'Variant in flattened chain' for table 'string' that describes the type. I see that the first two this array element varies for each control and the remaining elements are the same for the same class type ActiveX controls. Please tell me if this is the best way to do it. I have

    Thank you.

    Ganesh Kumar

    I think jcarmody has answered this on the forums of LAVA.  Flatten your ActiveX to XML reference, then parse the XML.  The XML contains the name and the GUID of the ActiveX object.

  • HTML Parsing error: Cannot edit the item container parent before the child element is closed (KB927917).

    Original title: HTML Parsing Error:

    When I go on this particular Web page, I can open the page, but with errors.  The error I get is: HTML Parsing Error: impossible to edit the item container parent before the child element is closed (KB927917).  Can someone out there help me solve this problem.  Also, it is the only Web page devoted to this particular site that does this.

    Hi Debbie9089,

    ·         What browser do you use?

    ·         Have you been able to access this site much earlier?

    If you use Internet Explorer, you can follow this link and check if the problem persists.

    Why do I get an "Operation aborted" error message when I visit a Web page in Internet Explorer?

    Hope the helps of information.

    Please post back and we do know.

  • How to check whether or not the value is already in the collection

    Hello

    I'm in the analysis of a donkey of xml file assigning values to the collection.
    For each new record, that I am available for capture of xml, I need to check if this value already exists in the collection or not, and then only I must add this value to the collection.
    How we do that. I am not able to check whether or not it is already present in the collection. Help, please.

    Here is my code


    TYPE tab_A_type_rec IS RECORD)
    Name Varchar2 (50);
    );

    TYPE tab_A_type IS TABLE OF THE tab_A_type_rec;

    pkv_A_tab tab_A_type: = tab_A_type ();


    l_nl: = dbms_xslprocessor.selectnodes (dbms_xmldom.makeNode (l_doc), ' / / List "");
    for cur_rec in 0... dbms_xmldom.GetLength (l_nl)-1 LOOP
    l_n: = dbms_xmldom.item (l_nl, cur_rec);

    pkv_A_tab.extend; -----
    pkv_A_tab (pkv_A_tab. (Last). Name: = dbms_xslprocessor.valueOf (l_n,'Name / text () '); -I have to do these two steps only after checking whther that value is already present in the collection pkv_A_tab or not... What will be the stated case.

    end loop;


    Thank you
    Pramod

    Peter Gjelstrup wrote:

    Then in the final use TOGETHER to eliminate duplicates.

    The only problem - cannot use SET operator nested table records ;) or even on a table nested objects, unless the object type has map/delivery orders. Now if in real life, record type has only one attribute - NAME OP can just create type of TABLE OF VARCHAR2 (50). Then:

    SQL> declare
      2      type tab_A_type is table of varchar2(50);
      3      pkv_A_tab tab_A_type := tab_A_type('A','B','C','A','B','C','D');
      4  begin
      5  if 'B' member of pkv_A_tab
      6    then
      7      dbms_output.put_line('Found B.');
      8  end if;
      9  pkv_A_tab := set(pkv_A_tab);
     10  dbms_output.put_line('List of distinct elements:');
     11  for i in 1..pkv_A_tab.count loop
     12    dbms_output.put_line(pkv_A_tab(i));
     13  end loop;
     14  end;
     15  /
    Found B.
    List of distinct elements:
    A
    B
    C
    D
    
    PL/SQL procedure successfully completed.
    
    SQL>   
    

    SY.

  • When I share a note with a checklist, I can see when the other person check of an item. I do not see when registering an item (it is disabled). Why?

    When I share a note with a checklist, I can see when the other person check of an item. I do not see when registering an item (it is disabled). Why?

    Try switching your Notes on / off under settings > iCloud or maybe restart the device-restart your iPhone, iPad or iPod touch - Apple Support to see if this could solve the problem.

  • I found an old vista home basic dvd with a key, how can check whether key works but not install it?

    I found an old vista home basic dvd with a key, how can check whether key works, but not install it? some dvd install can be live boot from themselves too [password required for a direct start?]?

    Hello

    You must install it to see if it is legal to do so.

    There is no public database of product keys.

    See you soon.

  • A query need to check whether the database should any recovery media...

    Hello

    I'm at the stage of editing a database and still be opened.at this point no matter what query is available or in any other way is there to check whether the database should any recovery media or Instance recovery... ?

    My goal is before opening the database, I make sure it's compatible or incompatible, and any form of recovery is necessary.

    Thank you and best regards,
    Rameau

    Published by: ragu.dba.in on 6 March 2013 12:57 AM

    Hi Lila,

    Use these queries, YVERT should match... no fuzzy file, don't check for recovering files in v$ recover_file... spend sufficient archives & realize the audits before open reset-logs

    set line 900
    set pages 900
    set echo on
    alter session set nls_date_format='dd-mon-yyyy hh24:mi:ss';
    set numwidth 13
    col CHECKPOINT_CHANGE# for 9999999999999999
    col CHANGE# for 9999999999999999
    column error format a10
    column member format a60
    show parameter db_recover
    select * from v$recover_file;
    select file#, status from v$datafile;
    select file#, checkpoint_change#, checkpoint_time, error from v$datafile_header;
    select distinct status from v$backup;
    select distinct  checkpoint_change#  from v$datafile_header;
    select hxfil file_id, fhscn scn, fhthr thread, fhrba_seq sequence, fhsta status from x$kcvfh;
    select distinct fhscn from x$kcvfh;
    select hxfil file_id, fhtnm tablespace_name from x$kcvfh;
    ##### Fuzzy Check ####
    alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS';
    set feedback on
    set heading on
    set pagesize 1000
    set linesize 175
    column checkpoint_change# format 999999999999999999999
    select status, checkpoint_change#, fuzzy,
    to_char(checkpoint_time, 'DD-MON-YYYY HH24:MI:SS') as checkpoint_time,
    count(*)
    from v$datafile_header
    group by status, checkpoint_change#, fuzzy, checkpoint_time
    order by status, checkpoint_change#, fuzzy, checkpoint_time;
    

    Thank you
    Ajay more
    http://www.moreajays.com

  • check whether the work of clone was successful

    Hi all

    today I am cloning of virtual machines with my vCenter (scheduled tasks) and I remove my clones with PowerCLI Powershell.

    But if Te my data store is full, the work of clone will be not successful, in this case, I want to get an alert.

    How can I check whether my work clone was successful?

    Thanks in advance

    You can try:

    (Get-Task | Where-Object { $_.Name -eq "CloneVM_Task"}).State
    

    The Get-job cmdlet retrieves information about current or recent tasks.

    The status value returned is error, pending, running or success.

    Robert

  • Check whether the backup is suitable for restoration

    DB version: 11 g

    RMAN, how can I check whether or not the available backup is not corrupted?

    validate backup and restore to validate

    http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270/rcmvalid.htm

    Badin

  • check whether or not a concurrent request is complete the backend

    Hi all
    I want to check whether or not the competing applications is complete the backend using the API. I discovered that FND_CONCURRENT.wait_for_request can be used, but inside this procedure they use dbms_lock.sleep command to delay treatment. I used the same dbms_lock.sleep in my code, but does not correct results.
    Please you siggest me on solutions workaround that needs to be done to get the exact time of the concurrent request will have to fill.


    Thank you and best regards,
    Mahesh

    Hello

    You can get the same information in table FND_CONCURRENT_REQUESTS (API of FND_CONCURRENT of the readings of the same table).

    If you want to continue to use an API, see if you can use FND_CONCURRENT. GET_REQUEST_STATUS (Please check if it is a public API).

    Kind regards
    Hussein

  • Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value?

    Where does FireFox get the default value for a preference of. What is the format of the file that contains the default value? I need the actual default value for an individual preference.
    Topic: config shows some default values, but I need the source from which everything: config returns to the default value.
    Any help in this direction is greatly appreciated.

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x 64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The preferences that are not hidden if they have by default are stored in two JavaScript text files in the Firefox program folder
    You can open them in a tab in Firefox through these links:
    resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js

    (702598/forum/1/702598)

  • How to lock a row containing a LOB value?

    I use a process called "lob_replace":

    CREATE OR REPLACE
    PROCEDURE lob_replace
    (
    p_lob IN OUT CLOB,
    p_what IN VARCHAR2,
    p_with IN VARCHAR2)
    AS
    n NUMBER.
    BEGIN
    n: = dbms_lob.instr (p_lob, p_what);
    IF (NVL (n, 0) & gt; 0) THEN
    DBMS_LOB. Copy (p_lob, p_lob, dbms_lob.getlength (p_lob), n-LENGTH (p_with), n-LENGTH (p_what));
    DBMS_LOB. Write (p_lob, (p_with) LENGTH, n, p_with);
    IF (LENGTH (p_what) & gt; Length (p_with)) THEN
    DBMS_LOB. Trim (p_lob, dbms_lob.getlength (p_lob)-((p_what)-(p_with) LENGTH LENGTH));
    END IF;
    END IF;
    END;
    /

    I'm testing this procedure:

    DECLARE
    a_lob CLOB.
    CURSOR my_cur
    IS
    SELECT b.data
    OF h_content_mgt m.
    h_articlemgr am,
    h_clob b
    WHERE m.menu_id = 1915
    AND m.type = 1
    AND $m.name = 'WWWSITE_CORPCITIZEN_OVERVIEW_HTML. '
    AND am.id = m.content_id
    AND b.id = am.clob_id;
    BEGIN
    OPEN my_cur.
    SEEK my_cur INTO a_lob;

    lob_replace (a_lob, 'Hello', 'Goodbye');
    CLOSE My_cur;
    END;
    /

    Each time, I get the following results:

    Error report:
    ORA-22920: the row containing the LOB value is not locked
    ORA-06512: at "SYS." DBMS_LOB", line 429
    ORA-06512: at "T_DB. LOB_REPLACE', line 11
    ORA-06512: at line 18 level
    22920 00000 - "the row containing the LOB value is not locked.
    * Cause: The row containing the LOB value must be locked before updating the LOB value.
    * Action: Lock the row containing the LOB value before updating the LOB value.

    I'm new to PL\SQL and I use the book by Feuerstein Oracle PL/SQL Programming . How to lock a row containing a LOB value?

    Try this

    Specify the clause
    in select it.
    UPDATE

    CURSOR toys_cur IS
       SELECT name, manufacturer, preference_level, sell_at_yardsale_flag
         FROM my_sons_collection
        WHERE hours_used = 0
          FOR UPDATE;
    

    Published by: alvinder on March 5, 2009 10:12

  • Check if the collection contains an item

    What is the best way to build a collection and check if it contains specific objects? For example,.

    DECLARE
    Dnames_tab. ARRAY TYPE IS VARCHAR2 (30);
    dept_names dnames_tab;
    BEGIN

    dept_names: = dnames_tab ('Shipping', 'Sales', 'Finance', 'Payroll');

    END;
    /

    How can I check if dept_names contains a specific Department? Is the only way to do a loop?

    MEMBER of operator use:

    DECLARE
        TYPE dnames_tab IS TABLE OF VARCHAR2(30);
        dept_names dnames_tab;
    BEGIN
        dept_names := dnames_tab('Shipping','Sales','Finance','Payroll');
        if 'Finance' member of dept_names
          then
            dbms_output.put_line('Found Finance');
          else
            dbms_output.put_line('Did not find Finance');
        end if;
        if 'nickw2' member of dept_names
          then
            dbms_output.put_line('Found nickw2');
          else
            dbms_output.put_line('Did not find nickw2');
        end if;
    END;
    /
    Found Finance
    Did not find nickw2
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    SY.

  • Check that a string contains data only numbers

    Hello

    I'm trying to find an elegant way to test an input string "serial number" format A00000000 (where A can be any letter and 0 can be a number any).  My first thought was to check the following features:

    (1) total string length = 9.

    (2) using the "Decimal String to the Number.vi", result = 0 (which indicates that the string contains no numbers).

    (3) using the 'Decimal string to Number.vi' with an offset of 1, the result is a number.

    Unfortunately, that does not differentiate between the following strings:

    A00005123 valid

    Invalid A5123

    Invalid A5123B123

    Invalid A005123BC

    All the world is this recently?  Is there a way to analyze non-specific chips (for example separating the groups of letters, numbers or other?)  Is there a complete way to do this without breaking the chain in 9 individual items and do a comparison of 26 item for the letter and 10 element for each number comparisons?

    Thank you

    Sean

    You can use a regular expression to match the pattern.

Maybe you are looking for

  • MacBook freezes randomly

    Mac crashes randomly and I have to turn it off it hard. It comes to the newspaper before the start, as soon as the accident occurred. __ 20/04/16 17:20:42.926 cloudfamilyrestrictionsd [280]: CFRPushManager: link: didChangeConnectedStatus: 0 20/04/16

  • Tolerance of pixel on Satellite L30

    Grateful if someone could tell me political pixel dead what Toshiba of Satellite L30. Thank you very much

  • HP Pavilion HPE h8 - 1212c: graphics card for HP Pavilion HPE h8 compatibility - 1212c

    Hi, I wanted to update my graphics card. I also know that I would probably upgrade the PSU accordingly too. I have been interested in the ti of EVGA GTX 750(click here for a specific card) but I read that they might be incompatible with my motherboar

  • Desktop software for Slate

    Are there software that I can put on a PC that can configure the Slate of HP 7 2800. I have an iphone when you plug in the software store allows you to configure the screen and other parameters. Is there something like that for the slate?

  • How to wake up the computer from sleep

    I have a Pavilion HPE h8-1100, 64 bit, Win 7 running. When computer goes to sleep, I have problems, he wake up. I tried different keys but nothing happens. Microsoft says to check the manual of the computer, but I don't see anything in the manual tha