What exacly does filtering by the "like" operator do?

I'm using Apex 3.1 and in my interactive report I'm using the "Filter" option from the action menu. What exactly does the "like" operator do?
For example if I have a string "male" does the like operator search for all words
%male
male% or
%male%
Thanks!

If you test it out you will see that the IRR simply wraps whatever you enter into standard SQL syntax. So, selecting 'Job' 'like' and entering 'MAN' returns no rows against the EMP Table. Changing that to 'Job' 'like' 'MAN%' returns 'MANAGER's and 'Job' 'like' '%MAN' returns 'SALESMAN's (excuse the improper grammar). Your users need to put the % where they want the wildcard. We also mention it in the Help available off the Actions Menu - "The expression is case sensitive and you can use % as a wild card (e.g. STATE_NAME like A%).
Hope that helps -
-- Sharon

Similar Messages

  • Why the 'LIKE' operator takes so much time to run?

    I have a table T with 3 columns and 3 indexes:
    CREATE TABLE T
    id VARCHAR2(38) NOT NULL,
    fid VARCHAR2(38) NOT NULL,
    val NVARCHAR2(2000) NOT NULL
    ALTER TABLE T ADD (CONSTRAINT pk_t PRIMARY KEY (id,fid));
    CREATE INDEX t_fid ON T(fid);
    CREATE INDEX t_val ON T(val);
    Then I have the following two queries which differ in only one place - the 1st one uses the '=' operator whereas the 2nd uses 'LIKE'. Both queries have the identical execution plan and return one identical row. However, the 1st query takes almost 0 second to execute, and the 2nd one takes more than 12 seconds, on a pretty beefy machine. I had played with the target text, like placing '%' here and/or there, and observed the similar timing every time.
    So I am wondering what I should change to make the 'LIKE' operator run as fast as the '=' operator. I know CONTEXT/CATALOG index is a viable approach, but I am just trying to find out if there is a simpler alternative, such as a better use of the index t_val.
    1) Query with '=' operator
    SELECT id
    FROM T
    WHERE fid = '{999AE6E4-1ED9-459B-9BB0-45C913668C8C}'
    AND val = '3504038055275883124';
    2) Query with 'LIKE' operator
    SELECT id
    FROM T
    WHERE fid = '{999AE6E4-1ED9-459B-9BB0-45C913668C8C}'
    AND val LIKE '3504038055275883124';
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=1 Card=1 Bytes=99)
    1 0 TABLE ACCESS (BY INDEX ROWID) OF 'T' (Cost=1 Card=1 Bytes=99)
    2 1 INDEX (RANGE SCAN) OF 'T_VAL' (NON-UNIQUE) (Cost=4 Card=12)

    I will for sure try to change the order of the PK and see whether there will be any impact to the performance.
    In our application, val is much closer to a unique value than fid. In the example query, the execution plan showed that the index on val was indeed used in the execution of the query. That's why the 1st query took almost no time to return (our table T has more than 6 million rows).
    I was hoping the 'LIKE' operator would utilize the t_val index effectively and provide similar performance to the '=' operator. But apparently that's not the case, or needs some tricks.

  • Select Performance problems using the 'like' operator

    I have a PL/SQL procedure that uses a cursor which contains a 'like' operator in the where clause. I have two database instances that are theoretically the same, however this code processes about 100,000 rows in 5 minutes on one database and 100,000 rows in several weeks on the other database. I know it is the 'like' operator that is causing the problem, but I don't know where to look in the database setup parameters as to what could be different between the two. Can someone point me in the right direction?

    I tried to think of another way to write the query, but I really need to use the wildcard option on the data I'm searching for. The system I'm working with attaches a suffix to the end of every ID (ie. '214-222-1234-0') The suffix ('-0') increments but the rest of the ID stays the same ('-1','-2',etc...), but I want to find all of the rows where the first 12 characters are the same, so I strip off the suffix and use a wildcard '%' in its place. I tried adding the SUBSTR() function to the left hand column of the where clause, but it was even slower than using the 'like' operator. I know its a sound query, I just can't figure out why it works fine on one database and not the other.

  • Target data source does not support the AGO operation

    Hi,
    In BI Admin Tool, I join Essbase cube and relational source. Then I apply Ago function to Essbase measures. In BI Answer, I try to run query that includes Essbase Ago measures and relational columns(non measures), error message shows the following detail:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22001] Target data source does not support the AGO operation. (HY000)
    When I remove the relational columns or run Essbase current-date messures, the result is fine.
    So, what's exact meaning of this error message? and does the relational columns (non-measure) support Essbase measures' Ago function?

    to clarify:
    fail case:
    criteria
    YEAR | YTD,gen03 | MONTH_NAME | SALES(YEAR_AGO)
    cube dimension: year, ytd,gen03
    relational source: month_name
    cube measure using AGO(): sales(year_ago)
    result: error messageSuccess case:
    criteria
    YEAR | YTD,gen03 | SALES(YEAR_AGO)
    cube dimension: year, ytd,gen03
    cube measure using AGO(): sales(year_ago)
    result: success~! how can i solve it? thx

  • My pc does not meet the minimum operating system requirements for the 6th gen nano. Is there anything I can do to make it work?  This was sent to me from Apple after my previous Nano was recalled.

    My pc does not meet the minimum operating system requirements for the 6th gen nano. Is there anything I can do to make it work on windows XP?  This was sent to me from Apple after my previous Nano was recalled.

    I think you've anwsered your own question. If it does'nt meet the minimum spec it won't work.

  • HT201250 when restoring a time machine backup to a new computer, does it affect the new operating system on the new computer

    when restoring a time machine backup to a new computer, does it affect the new operating system on the new computer?

    That depends on how you do it.
    By far the best, easiest, most reliable method is to use Setup Assistant when your shiny new Mac first starts up, to transfer your apps, users, data, etc.   That doesn't disturb either the OS or basic Apple apps that came with the new Mac.  See Using Setup Assistant on Mountain Lion or Lion.
    There is a facility to restore an entire system from Time Machine backups, including the version of OSX on the backup, but that's for use when your internal HD has been erased or replaced only.  It's not a good idea to restore the full backup of one Mac to a different one.  Depending on the circumstances, the installer may not allow it.  Even if it does, the Mac may not start up, or may kernel panic, or not work properly.

  • What messages does it shows the integration engine(sycn/ asyn)?

    What messages does it shows the integration engine(sycn/ asyn)?

    Status: TO_BE_DELIVERED
    Which means that the message was successfully delivered from Integration Server point of view and it states that the messages is initially handed over to the Messaging System.
    TO_BE_DELIVERED occurs while the message is put into the Messaging System receive queue.
    Solution:
    This is done via the Messaging System receive servlet:
    http://<Host>:<PORT>/MessagingSystem/receive/<CONNECTION>
    /<PROTOCOL>
    Only if this was executed successfully the Messaging System returns HTTP 200 to the Integration Server and the Status TO_BE_DELIVERED moves to DELIVERING
    1. Try logging into Sap GUI with two users: XIAPPLUSER & XIAFUSER
    to see if they are blocked
    2. We can check the messages:
    AdapterFramework
    com.sap.aii.adapterframework.serviceuser.language
    com.sap.aii.adapterframework.serviceuser.name = XIAFUSER
    com.sap.aii.adapterframework.serviceuser.pwd
    ApplicationSystem
    com.sap.aii.applicationsystem.serviceuser.language
    com.sap.aii.applicationsystem.serviceuser.name = XIAPPLUSER
    com.sap.aii.applicationsystem.serviceuser.pwd
    in the exchange profile to make sure the right passwords

  • Interactive Report - filtering with the "IN" operator

    Hello,
    I have a column in an IR that is a concatenated field (Last Name, First Name MI). When filtering on this field using the IN operator, it returns the correct record if one value is chosen, but if more than one value is chosen, no data is returned. It's as if it is performing an OR statement instead of an AND.
    Any suggestions on how to troubleshoot or resolve this issue?
    thanks,
    Matt

    Mike - That's correct.
    Varad - I'm not sure how I was missing that.
    This concatenated field in the select statement looks like this:
    (c.LAST_NAME||', '||c.FIRST_NAME||' '||c.MI) AS Prov_Full_Name,The values in the table are:
    LAST_NAME = 'Brown, LMHC'
    FIRST_NAME = 'James'
    MI = 'L'
    LAST_NAME = 'Riggins, LMFT'
    FIRST_NAME = 'John'
    MI = 'D'
    The debug gives this WHERE clause:
    "PROV_FULL_NAME" in (:APXWS_EXPR_VAL1_3, :APXWS_EXPR_VAL2_3, :APXWS_EXPR_VAL3_3, :APXWS_EXPR_VAL4_3, :APXWS_EXPR_VAL5_3, :APXWS_EXPR_VAL6_3)The debug also shows the IR binding:
    0.04: IR binding: ":APXWS_EXPR_VAL1_3"="APXWS_EXPR_VAL1_3" value="Brown"
    0.04: IR binding: ":APXWS_EXPR_VAL2_3"="APXWS_EXPR_VAL2_3" value="LMHC"
    0.04: IR binding: ":APXWS_EXPR_VAL3_3"="APXWS_EXPR_VAL3_3" value="James L"
    0.04: IR binding: ":APXWS_EXPR_VAL4_3"="APXWS_EXPR_VAL4_3" value="Riggins"
    0.04: IR binding: ":APXWS_EXPR_VAL5_3"="APXWS_EXPR_VAL5_3" value="LMFT"
    0.04: IR binding: ":APXWS_EXPR_VAL6_3"="APXWS_EXPR_VAL6_3" value="John D"It looks like the comma that the users are putting into the last name may be the issue, but not positive.
    Do you have any thoughts on how to resolve this?
    Thanks,
    Matt

  • Using the LIKE operator

    How do I create a search parameter LIKE for a name?  I wrote this, and it's pulling in all the names, instead of only searching for whatever I entered in.  What did I do wrong?  Please help.
    {table.name_last} like ["*", {?Last Name}]
    Thank you,
    T

    I have never seen it written like this.  Are the * entered in the parameter selection?
    {table.name_last} like \"*\", {?Last Name}
    What does
    do in the formula?

  • SSRS Expression for Conditional Filtering using the "IN" operator

    Hello,
    I need to filter my dataset based on a parameter:
    If Period= 1 then Week must be in (W1, W2, W3),  Else Week must be in (W10, W20, W30)
    I tried using the "IN" operator but don't know how to create the expression for the "Value" field. I tried the following:
    iif(Parameters!Period.Value = 1,
    "W1, W2, W3",
    "W10, W20, W30")
    But it doesn't work.
    Expression: Week
    Operator: IN
    Value: ???
    Any help would be highly appreciated!

    Hi,
    Use split function.
    See this expression: IIF(Parameters!Period.Value = 1, SPLIT("W1,W2,W3",","), SPLIT("W10,W20,W30",","))
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/8da78c9b-7f0c-42f1-a9c4-82f065f317c9/using-the-in-operator-in-ssrs-expressions
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • On e-bay or similair sites a reproduction/photo of the product is not on screen; why does it not work like Opera /Chrome?

    just download last beta of firefox..after startup i activate www.marktplaats.nl.. the small pictures of the products is not showed!

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    *A way to see if images are blocked is to click the favicon ([[Site Identity Button]]) on the left end of the location bar.
    *A click on the "More Information" button will open the Security tab of the "Page Info" window (also accessible via "Tools > Page Info").
    *Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    *Select the first image link and scroll down though the list with the Down arrow key.
    *If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.
    *You can see the permissions for the domain in the current tab in Tools > Page Info > Permissions
    *You can see all exceptions in Tools > Options > Content: Load Images > Exceptions
    See also [[Images or animations do not show]]

  • Does Safari support the lazy operator in a JavaScript regular expression?

    I've already filed a bug for this. Anyway I'd like to know if you already knew it.
    If you go to http://noteslog.com/personal/projects/regexp/test.html you'll see an input box and a "Go!" button. Put a JavaScript regular expression in the box and click the button. Shortly you'll see a red line showing how many characters have been matched.
    If you try
    \[\w\W\]
    you get a correct result (all matched)
    but if you try
    <\?\[\w\W\]*?\?>
    you get a wrong result (nothing matched) and the issue is due to the fact that the ? after the * is not treated as a laziness operator.
    Test in IE, FF, and Opera too, and you'll see that they work as expected.
    Message was edited by: Andrea Ercolino

    If you try it from http://regexpal.com/ you'll see that it works as it should in IE and FF but not in Safari.
    Message was edited by: Andrea Ercolino

  • What im doing wrong in the loop?

    Mistyped
    Edited by: 794018 on Sep 20, 2010 5:11 AM

    >
    How I can change this code
    to have the output like this
    >
    Well you need to look at your output and see where the first line of output is wrong.
    This is the first line of output
    >
    3          120
    >
    If that line is not correct ask yourself where those values came from.
    The output is done by this line
    System.out.format ("%s\t\t%s\n",i,dist);So the 3 came from 'i' and the 120 came from 'dist'.
    Is the 3 correct? If not then 'i' is not correct.
    So look at your code one line at a time and try to figure out why the first value of 'i' is not correct.
            for (int i = numberOfhoursTraveled; i < milePerhour; i++) {
               dist = (int) convertDistanceTraveled(milePerhour, numberOfhoursTraveled);What is the value of 'i' the first time through the loop? It is numberOfhoursTraveled which is 3. Is that what you want?

  • Using the LIKE operator with wildcards to match names

    I am using SQL in ColdFusion 9 to match names in an MS Access 2003 database table.
    The Visitors field of MyTable contains the name "Smith" in six records.
    1. Smith Jones Wilson
    2. Smith, Jones, Wilson
    3. Smith(Jr.), Jones, Wilson
    4. Jones Wilson Smith
    5. Wilson Smith Jones
    6. Smith
    7. Smithson, Jones, Wilson
    8. Jones, Wilson, Arrowsmith
    To find out which records contain the name Smith (but not Smithson or Arrowsmith) I now need to write four "OR" lines:
    WHERE MyField LIKE 'Smith[!a-zA-Z]%'  (finds only the Smiths in records 1, 2 and 3)
             OR MyField LIKE '%[!a-zA-Z]Smith'  (finds only the Smith in record 4)
           OR MyField LIKE '%[!a-zA-Z]Smith[!a-zA-Z]%' (finds only the Smith in record 5)
           OR MyField = 'Smith'   (finds only the Smith in record 6)
    I would like to know how to combine these four lines into one which would find all six records containing Smith.
    Thank you for your help.

    As this is a SQL-specific question, you might be better off asking it on a SQL forum?  Does Access even support regexes?
    For a CF the regex you'd be after "\bsmith\b".  You should read the Access regex reference to see if it supports this.  A CF regular expression is no use to you here as the comparison needs to be done on the DB,  not in CF.
    Adam
    Misread the question.  Revising.

  • Under what condition does SAP populate the Contract number during dunning

    Hi,
    Would anyone possibly know under what condition SAP populates the Contract number in the Dunning history transaction(FPM3). We have seen some examples in our production environment where dunning populated the Contract number(VTREF) in the dunning history header table FKKMAKO but there are other examples where the VTREF is blank in FKKMAKO.
    Thanks,
    Tarunavo Bhattacharya

    Hi,
    Please check if the contract is populated for the document posted for which the dunning is executed.
    As per my understanding, If the document is posted at contract level, the document would have the contract populated, and the dunning basically is executed at CA level, but if the document is having the contract populated, it should be displayed once the dunning is completed for the dunning history. If the contract field is blank, it wont appear for the dunning history details.
    Hope this helps!!
    Regards,
    Rajesh Popat

Maybe you are looking for

  • Importing HDV material error message

    This is my workflow. I have shot some footage with my Sony z1 in 1080/50i (I work on the PAL format). I want to down convert this with my camera and edit in FCP 5.0.4. I am using a Power Mac g5 quad. How should I import this into fcp? What should my

  • Shocking customer care

    I am a new customer of bt my account number is . On 8th/9th April 2014 i phoned bt as my broadband service is not of a standard i am paying for. I was told to call the tech team which I did. After numerous long winded conversations i got no where and

  • How to Verify digital signature in ABAP web dynpro enviroment

    Hi, I have few questions regarding, how we can Verify digital signature in ABAP WebDynpro ? Do we have class or function modules to verify digital signature on WAS once signed offline or online interactive form is uploaded back? can we use function m

  • Photoshop and After Effect CC Performance Problems

    The same files work smoothly in CS5, but not in CC

  • New 7.1 update

    ive seen a tweet today that there is a  new update avaliable  when will the blackberry curve 9360 in the uk get this ???? Solved! Go to Solution.