How to use "Contains" operator

Hi All,
I'm trying to use oracle text with the Contains operator. But I'm experiencing troubles.
When I have only one condition with the Contains operator the query works fine :
SELECT ObjectID
FROM T_Object
WHERE Contains (Title, 'english', 1) > 0
But when I add a second contains clause it does not work anymore:
SELECT ObjectID
FROM T_Object
WHERE Contains (Title, 'english', 1) > 0
OR Contains(ShortDescription, 'english', 1) > 0;
here is the error message :
ERROR LINE 4 :
ORA-29907: Double lables detected in primary calls.
I must admit that the error message is quite clear but I still can't understand why the query does not work.
Any help will be very appreciated.
Kind regards.

Change the label in the 'OR' part of the select statement and try.
SELECT ObjectID
FROM T_Object
WHERE Contains (Title, 'english', 1) > 0
OR Contains(ShortDescription, 'english', 1) > 0;
Try:
SELECT ObjectID
FROM T_Object
WHERE Contains (Title, 'english', 1) > 0
OR Contains(ShortDescription, 'english', 2) > 0;

Similar Messages

  • How to Use Dimension Operator

    Hi
    I'm trying to implement SCD Type 2. I have done so using conventional methods.
    I have read in some blogs that dimension operator can be used for SCD. Can any one provide me material on how to use Dimension Operator. I tried OWB User guide. But its not useful.
    I have seen that we need to create levels. But i dont need levels.
    Can somebody please tell me how to use it.
    Regards
    Vibhuti

    Hi Vibhuti,
    using dimensions with OWB 10g R2 isn't that difficult. You just create a number of attributes like an ID, a business key and probably a description and then associate each of the attributes with a level. You need at least one level that all the attributes are associated to. Then you can use the slowly changing dimension wizard (SCD) to track changes. In the SCD settings you can determin for which attribute you want to trigger history and which attributes contain your effective date and your end date (if you want to use SCD type II). Obviously you would need two additional attributes in every level for that purpose.
    Regards,
    Jörg

  • Error (Error when starting a SWITCH branch) while using container operation

    HI Experts,
    I am using container operation step for moving internal table (ref to sflight) to workarea.The error I found in the log is ' Error when starting a SWITCH branch'.Kindly help me in finding the solution.Below are the steps and code.
    Result Element = lw_sflight             (Element ref to sflight with export and Import)
    Assignment     =    =                     (Assign (contents of table are deleted first)
    Expression      = &FLIGHT&             (Multi line container ref to sflight)
    Operator          = Assignment
    Expression      =                                 (Blank)
    Thanks and Regards,
    Srini

    Hello,
    Maybe you should show more information about the condition step instead of the container operation step.
    A previous poster in SDN said they solved their problem by changing the order of the conditions.
    regards
    Paultje Bakker
    Hanabi Technology

  • How to use LIKE operator in plsql

    Hi
    I wanted to select certain rows using like operator in plsql(Input should be given by the user). I have given my experiment here .I couldn't get any result.
    As per sql syntax while using LIKE operator we should give search criteria within single quote.where as in plsql if we give within single quote its takes as string so no output is comming.what is solution ? How to use like operator in plsql?
    sql syntax
    SQL>SELECT customer_name FROM customer_header
    WHERE customer_name LIKE 'B%' ; customer_name
    Bala murali
    Babu
    Basker
    plsql syntax
    PROCEDURE pro_custheader_like ( v_cname IN varchar2
         ,answer OUT type_refcur_customer) IS
         BEGIN
         OPEN answer FOR
         SELECT customer_name FROM customer_header
              WHERE customer_name LIKE ( ' v_cname ' );
    END pro_custheader_like;
    execution command
    sql>variable answer refcursor;
    sql>set serveroutput on
    sql>exec package_name.pro_custheader_like( 'R',:answer);
    plsql successfully completed
    sql>print :answer
    no row selected
    by
    balamuralikrishnan.s

    plsql syntax
    PROCEDURE pro_custheader_like ( v_cname IN
    varchar2
    ,answer OUT
    type_refcur_customer) IS
    N
         OPEN answer FOR
         SELECT customer_name FROM customer_header
    WHERE customer_name LIKE ( v_cname );
    END pro_custheader_like;
    Try it without any quotes. And, let us know your feedback.
    Regards.
    Satyaki De.
    Message was edited by:
    Satyaki_De

  • How to use ternary operator in JSF using EL expression

    how to use ternary operator in JSF using EL expression

    I want to use ternary operator for h:datatable columnclasses attribute like as below
    <h:datatable
    columnClasses="#{booleanExpression ? style1,style2 : style3,style4}"
    />
    But it's not working.Is there any other alternative to do this?

  • How to use 'about' operator in Full text search query?

    Hi all,
    I have to search the following string in full text index using 'about' operator.
    'Advertisment(Cosmetics) Assets'
    If use the following query
    SELECT keyword_id
    FROM mam_keyword_languages
    WHERE contains(fts_text_uc, convert('about(Advertisment(Cosmetics) Assets)',
    'WE8MSWIN1252', 'WE8MSWIN1252')) > 0
    ORDER BY nlssort(text, 'NLS_SORT=EEC_EUROPA3')
    It gives following error.
    ERROR at line 1:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50901: text query parser syntax error on line 1, column 37
    How can i do this search? Is there any other way?
    Thanx in advance.
    T.Umapathy

    Sum((postab.subtotal)*(loc.royalty)/100)
    Is there any other way to take product of two
    attributs? your help will be greatly appreciated as
    it is really stumbling block in my project. Thanks in
    advanceSuch a stumbling block should have inspired more activity on your part.
    I'd try rewriting it like this:
    sum(postab.subtotal*loc.royalty/100)[/b]%

  • How to use XRANK operator for partial match comaprison?

    Hi All,
    I am aware how to use the XRANK operator to boost a result if a managed property equals a specific value.
    XRANK(cb=400) importance:'1'
    How would I make a key word query using XRANK which will boost a result if the managed property contains a part or whole of a term as indicated in the pseudo code below?
    XRANK(cb=400) language:'*en*'
    In this scenario, I would like all results where language contains  the phrase 'en' to be boosted. I wonder if this is possible at all.
    thanks,
    Saurabh
    sdg

    Hi,
    Keyword Query Language does not support suffix matching.  So, in the above scenario it might not be possible.
    Please refer to the technet article.
    Keyword Query Language (KQL) syntax reference
    Please mark it answered if your problem resolved or helpful.

  • How to execute contain operation in sequences?

    Hi,I am confused about sequences,it seems java.util.Collection more convenient,so why need sequences.
    and how can I do a contain operation on sequences?if use indexof operator,how to determin object equals?how to implements equals method in javafx object?

    One way to determine whether or not a Sequence contains an element is to implement a Comparator (or have the element implement Comparable) and use the javafx.util.Sequences.binarySearch function.
    I don't have access to a compiler at the moment, but something like this should work:
    import javafx.util.Sequences;
    var strings: String[] = [
            "Hello",
            "World",
            "Goodbye"
    //Sequence needs to be sorted for us to be able to determine whether or not it contains a given string with a binary search. String already implements Comparable, so we do not need to use a comparator.
    strings = Sequences.sort(strings);
    //Now determine whether or not this sequence contains the specified string.
    var containsString: Boolean = (Sequences.binarySearch(strings, "Hello") != -1); //This should return true.I haven't tried overriding equals, but I've overridden toString() just fine, so you can probably do that in a similar way:
    public class MidiInstrument {
        public-init var name: String;
        public-init var bank: Integer;
        public-init var program: Integer;
         * Overrides toString to ensure that the ChoiceBox used to choose an instrument can display this item as a string.
        public override function toString(): String {
            return name;
    }

  • Using Container operation step can i pass one table to another?

    hi
    i have 2 multiline container elements in the workflow.
    in one of my step i am sending email using the receipents from the table LT_RECLIST which is a multiline container. Now before this step i am using a container operation step to pass LT_RECLIST_FINAL to LT_RECLIST. But guess this is not working? is this possible?
    the condition in container operation step is like this
    Result Element   LT_RECLIST
    Assignment         =     Assign (contents of table are deleted first)
    Expression          &LT_RECLIST_FINAL&
    Operator
    any idea where i am going wrong?

    instead of
    =     Assign (contents of table are deleted first)
    try the followinng option.
    <-    Add only to table (contents are extended)
    or you can directly use the element LT_RECLIST_FINAL in your mail step instead of assigning it to LT_RECLIST and using this element. if both the elements are going to store the same values then there is no point in using a separate element.

  • How to use contains() function in bpel?

    Hi
    Am facing a problem in using contains() function in a switch case... my condition inside a switch case is contains(bpws:getVariableData('singleSIS'),bpws:getVariableData('singleSIS_check')) where the variable 'singleSIS' has a value 'ABCDE' and 'singleSIS_check' has a value 'ABCDE' ... Ideally this condition should return true,but its not happening..Can someone tell me what is the issue with this ?
    P.S both the variables are of string type. Please help me with this..

    Sure:
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Fri Apr 06 12:41:59 IDT 2012
    Author: DELL
    Purpose: Asynchronous BPEL Process
    -->
    <process name="BPELProcess1"
    targetNamespace="http://xmlns.oracle.com/SodaDev_jws/Project4/BPELProcess1"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:client="http://xmlns.oracle.com/SodaDev_jws/Project4/BPELProcess1"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
    xmlns:bpel2="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:med="http://schemas.oracle.com/mediator/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="bpelprocess1_client" partnerLinkType="client:BPELProcess1" myRole="BPELProcess1Provider" partnerRole="BPELProcess1Requester"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:BPELProcess1RequestMessage"/>
    <!-- Reference to the message that will be sent back to the requester during callback -->
    <variable name="outputVariable" messageType="client:BPELProcess1ResponseMessage"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="inputVariable" createInstance="yes"/>
    <!--
    Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
    -->
    <switch name="Switch_1">
    <case condition="contains(bpws:getVariableData('inputVariable','payload','/client:process/client:input'), 'ABCDE' )">
    <empty name="Empty_1"/>
    </case>
    <otherwise>
    <sequence>
    <empty name="Empty_2"/>
    <empty name="Empty_3"/>
    </sequence>
    </otherwise>
    </switch>
    <invoke name="callbackClient" partnerLink="bpelprocess1_client" portType="client:BPELProcess1Callback" operation="processResponse" inputVariable="outputVariable"/>
    </sequence>
    </process>

  • How tio use like operator in textitem to get the name

    Oracle forms6i
    Hai All
    I have created an form to create an hierarchy list. I that I had an Text_item how can i use like operator to get the name to select. which trigger i need to use. when i select the name i need to get his employee code and other details
    Thanks In Advance
    Srikkanth.M

    A is the head of Dept 10 and three person are under A namelyHow will you know that B, C and D are under A is there any parent child relationship between Leader and Employee code? If yes, Then you can create the relationship between blocks no need to set where_clause programatically. So, relationship can be like...
    leader_block.emp_code = emp_block.leader_code
    AND leader_blokc.dep_code = emp_block.dep_codeSo, when you will query data in LEADER block it will show employees which are under LEADER which you queried in LEADER block.
    Or if there is no relationship then how will you know that which employee under which leader?
    b 002 10 1
    c 003 10 1
    d 004 10 1
    When i enter the name of head corresponding other members in the department will need to display in the
    Tabular format Or if you want to query the records only for department relation. Then as you said you create two blocks then create create the relationship using dep_code between those blocks.
    like...
    leader.dep_code = emp_block.dep_code-Ammad

  • Alrt with field Lelvel Info - By using Container Operation and Control step

    HI,
    I have developed File to File scenario from /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    I created Integration Process in IR with two BPM steps Receive and Send step.
    Since I need a filed level info on alerts...I have included Container Operation and Control steps in between receive and send like..
    Receive --- Container Operation --- Control step -
    Send
    And now I have created the Alert category in Alrtcatdef and used the same category in control step.
    I have tested the above scenario with error message ( with mapping fail )...But I am unable to find the alert in the system?!!
    ---S

    HI Stallin
    Did alert generated by BPM itself. Check with BPM workflow.
    Another thing while generating alert from BPM, standard alert element will not work with BPE engine. Create elements for the same
    Thanks
    Gaurav

  • How to use Batch operation for two xsodata services?

    Hi All,
    I have two xsodata services. How to use submit batch for two xsodata services
    Thanks,
         Mj

    Gateway Batch Calls from SAPUI5

  • How to use like operator in loop

    Hi I am trying to use like operation in loop condition. the code is as follows:
    loop at lt_mara into l_mara where l_mara like '%XXX'.
    endloop
    when i have the like operator like above its giving me an error that i cannot use like operator. Is there anyway that i can use like operation in loop at condition,
    Thanks in advance

    using the ranges with CP option we can do that..
    Populate the ranges mentioned below..
    data: r_matnr type range of matnr,
            w_matnr like line of r_matnr.
    w_matnr-low = '%XXX'.
    w_matnr-sign = 'I'.
    w_matnr-option = 'CP'.
    append w_matnr to r_matnr.
    loop at lt_mara into l_mara where matnr in r_matnr.
    endloop
    Regards
    Vijay Babu Dudla

  • How to use boolean operator to get count

    Hi All,
    In my query i need to add a field Count which shows number.
    Meaning,
    Column A   ColumnB ColumnC  Count
    100               50            0            2
    55                60             76         3
    79                0               0           1
    meaning from all three column only two has values then Count should show 2. etc....
    any suggestion how to use boolean expression here ?
    or anyother way to display Count ?
    thanks,
    KS

    Hi thanks for idea.
    boolean didnt work here. the formulau sugested worked...
    But i wrote formula for the Count --> COUNT("overtime") and for the Count property I selected Calculate Result As --> Summation fo Rounded Values
    so the output is as follows:
    i had data for 3 payperiods
    Count  (1st 3 columns)                    overall result(last Column)
    200801     200802     200803           
    1                 0             1                         2
    1                1              1                         3
    0                1             0                         1
    Now the out put i wanted is in the last column -Result column.
    I dont want Count column to be display like this. it is showing values instead of total. any this i should change for this?
    thanks,
    KS

Maybe you are looking for

  • How do I run the same process on multiple CPUs  of a processor set?

    Hi, I am working on UltraSPARC T1 Processor. My development environment is SunStudio 12 running on Sun Solaris 10 OS. I want to run the same process concurrently on 4 hardware threads that belong to one core. I used pset_create() for creation of the

  • Slashes on video track for fcp 6

    Hi, I'm curious what these lines are. They're slashes that go from top left to the bottom right of the track and im wondering if it will affect the output of my final product. It's also very annoying to see. lol thank you.

  • Acrobat Reader and Acrobat Standard v9 compatibility

    What is the lowest version of Acrobat Reader that can read Acrobat Standard 9 .pdf files?

  • Actual Profitability on an Article

    Dear experts, Please go through the problem mentioned below PROBLEM FOR ACHIEVING ACTUAL PROFITABILITY Background In case of Purchase Orders made for articles to be imported, at the time of receipt of the import documents the following operations are

  • Ned help parsing XML

    I have an XML result that is coming back with aliases. I am parsing this data and putting each element into a database. A sample of the XML Structure is attached. I am using the ARRAYLEN feature to count the child elements but that generates an error