Operator LIKE

Hi All
Is TimesTen have limitation or I am wrong in sql query:
select * from MyTable1,MyTable2 where MyTable1.VarCharField1 LIKE MyTable2.VarCharField2||'%'
If TimesTen have limitation please help me to write sql for find record where
value of MyTable1.VarCharField1 start with value of MyTable2.VarCharField2.

Eugeney,
One clarification on what I said in my last reply. LIKE is supported but not for a column reference as the second operand.
Also, if the field is ASCII, you can also try:
Select * from MyTable1, MyTable2 where MyTable1.VarCharField1 >= MyTable2.VarCharField2 and MyTable1.VarCharField1 <= MyTable2.VarCharField2 || '\255';
Please let us know if the workaround works for you.
-scheung

Similar Messages

  • Relational operator LIKE is not supported.

    Hi friends,
    I am trying to write a routine in bw.  I am using LIKE pattern.
    But it is giving the below error.
    "E:Relational operator "LIKE" is not supported."

    hi,
    can you post your code and mention what do you want to achieve?
    thanks
    ec

  • Operator LIKE with SCAPE

    I'm using the operator LIKE on a query with the ESCAPE option to.
    I really dont understund according to the manual, the meaning of the ESCAPE commmand option.
    I apreciated if somebody could explaim me this option and an simple example of how to use it.
    Thanks a lot

    if you have this data
    <pre>
    num val
    1 hello_there
    2 hello there
    3 hellomthere
    4 hello%there
    5 hello you there
    select * from table where val like 'hello%there'
    will return all rows
    select * from table where val like '%hello\%there' escape '\'
    will return only row 4
    select * from table where val like 'hello_there'
    will return rows 1, 2, 3 and 4
    select * from table where val like 'hellox_there' escape 'x'
    will return row 1
    -d

  • I am running 10.6.8 want to upgrade 10.8 will i loose some older operations like iweb?

    I am running 10.6.8 time to upgrade 10.8 will i loose some older operations like iweb?
    Also if i load Mavericks will I still be able to revert back if I don't like the format?

    Upgrading from 10.6 will loose Rosetta and therefore, all legacy software that relies on Rosetta.  That includes things like MS Office versions older than 2008.
    You need to make a backup of your content, on an external drive, before updating so you have a means for reverting if necessary.  To revert to an older version of Mac OS X you have to erase the hard drive and then reinstall the older Mac OS X and all content.  That is easiest if done from a complete backup of your current system.

  • How to create sql query for item master with operator LIKE with variables?

    hi all,
    How to create sql query for item master with
    operator LIKE(Contains,Start With,End With) with variables using query generator in SAP B1 ?
    Jeyakanthan

    Hi Jeyakanthan,
    here is an example (put the like statement into the where field)
    SELECT T0.CardCode, T0.CardName FROM OITM T0 WHERE T0.CardName Like '%%test%%'
    The %% sign is a wildcard. If you need start with write 'test%%' and otherwise ends with '%%test'. For contains you need '%%test%%'. You also could combinate this statements like 'test%%abc%%'. This means starts with test and contains abc.
    Regards Steffen

  • Logical operator 'like'

    I have a small query where I have to retrieve vendor details not including the vendors starting with '9'.
    I have written the below query for that.
    select b~lifnr  " Vendor number
         into corresponding fields of table gi_output_vendors
    from  lfa1
    where  lifnr   not like  '9%'.
    But the output I am getting contains vendor numbers '0000950000' where I wanted to eliminate these type of numbers also. i.e, I don't want to consider leading zeroes.
    So, the below code I have written for that.
    The problem is with if condition or delete statement  'like' logical operator is not being allowed.
    loop at gi_output_vendors into wa_output_vendors.
    shift wa_output_vendors-lifnr left deleting leading '0'.
    if wa_output_vendors-lifnr like '9%'   " didn't work delete gi_output_vendors from wa_output_vendors   where
                  lifnr like '9%'. "didn't work
    endif.
    endloop.
    When I use 'like' with 'if' condition or 'delete' statement, I am getting error saying that 'Like operator is not allowed'.
    How could I deal with this situation.
    Thanks in advance.
    Vishnu Priya

    If you can guarantee the 9 will always be in the same place then it would be better to use offset logic or something like 'lifnr NOT LIKE '00009'' - incidentally, I believe the % wildcard only replaces one character so '9%' will be looking for a 2 char string containing a 9 followed by ONE other character.  Using '9' will look for a 9 followed by any number of other characters. Since lifnr is a 10 char field (according to your example) '9%' will always fail. I would suggest using the Data Browser (SE11) selection screens to try out some of the possibilities and see what works.
    Hope that's of some help!
    Andy
    By the way, I wouldn't recommend using '9' becasue this will look for a 9 <b>anywhere</b> in the lifnr field i.e. it could exclude a perfectly valid number just because it ends in a 9!
    Message was edited by: Andrew Wright
    Sorry, ignore me, in SQL you should use % and not * for multiple characters.  However, the same applies if you can guarantee the position of the 9.
    Message was edited by: Andrew Wright

  • How to pass parameter to a report for Operator 'LIKE'

    I need to pass a parameter to a report for "LIKE" operator. the parameter for "equal to or is in" operator is 'eq':
    'https://secure-ausomxfts.crmondemand.com/OnDemand/user/analytics/saw.dll?Go&Path=/shared/Company_AFTA-D78SR_Shared_Folder/Work Order Asset Lookup&Options=r&Action=Navigate&P0=2&P1=eq&P2=Account.TEXT_61&P3=&p4=
    What would 'p1' value for 'LIKE' operator?
    Thanks

    Hi, Hope the below helps
    neq - Not equal to or not in
    lt - Less than
    gt - Greater than
    ge - Greater than or equal to
    le - Less than or equal to
    bwith - Begins with
    ewith - Ends with
    cany - Contains any (of the values in &P3)
    call - Contains all (of the values in &P3)
    like - Is like (Type %25 rather than the % wildcard)
    top - In the top n (&P3 contains 1+n, where n is the number of top items)
    bottom - In the bottom n (&P3 contains 1+n, where n is the number of bottom
    items)
    bet - Between (&P3 must have two values)
    null - Is null (&P3 must be 0 or omitted)
    nnul - Is not null (&P3 must be 0 or omitted)
    Venky CRMIT

  • Operator "LIKE" versus operator "="

    I have textual column C in table T, and parameter P.
    If parameter P has value "abc"
    then is there difference in perfomace between those 2:
    "where T.C like P"
    "where T.C = P"
    Both conditions produce same resultset of the query. But maybe with LIKE operator the query is slower? And you would still suggest to use operator "=" if possible?

    >
    I don't believe that testing gives the correct answer.
    I believe there is a theoretical answer to the question.
    >
    Why not? Yes, there could be difference in parsing the command, but regarding the execution time, I don't see a difference in my example, do you?
    SELECT *
      FROM v$session
    WHERE USERNAME = 'ANONYMOUS'
    Execution Plan
    Plan hash value: 3733760267
    | Id  | Operation                | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT         |                 |     1 |  1064 |     0   (0)| 00:00:01 |
    |   1 |  NESTED LOOPS            |                 |     1 |  1064 |     0   (0)| 00:00:01 |
    |*  2 |   FIXED TABLE FULL       | X$KSUSE         |     1 |   855 |     0   (0)| 00:00:01 |
    |*  3 |   FIXED TABLE FIXED INDEX| X$KSLED (ind:2) |     1 |   209 |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - filter("S"."KSUUDLNA"='ANONYMOUS' AND "S"."INST_ID"=USERENV('INSTANCE') AND
                  BITAND("S"."KSSPAFLG",1)<>0 AND BITAND("S"."KSUSEFLG",1)<>0)
       3 - filter("S"."KSUSEOPC"="E"."INDX")
    Statistics
              0  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
           6082  bytes sent via SQL*Net to client
            384  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              7  rows processed
    SELECT *
      FROM v$session
    WHERE USERNAME LIKE 'ANONYMOUS'
    Execution Plan
    Plan hash value: 3733760267
    | Id  | Operation                | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT         |                 |     1 |  1064 |     0   (0)| 00:00:01 |
    |   1 |  NESTED LOOPS            |                 |     1 |  1064 |     0   (0)| 00:00:01 |
    |*  2 |   FIXED TABLE FULL       | X$KSUSE         |     1 |   855 |     0   (0)| 00:00:01 |
    |*  3 |   FIXED TABLE FIXED INDEX| X$KSLED (ind:2) |     1 |   209 |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - filter("S"."KSUUDLNA" LIKE 'ANONYMOUS' AND "S"."INST_ID"=USERENV('INSTANCE')
                  AND BITAND("S"."KSSPAFLG",1)<>0 AND BITAND("S"."KSUSEFLG",1)<>0)
       3 - filter("S"."KSUSEOPC"="E"."INDX")
    Statistics
              8  recursive calls
              0  db block gets
              2  consistent gets
              0  physical reads
              0  redo size
           6082  bytes sent via SQL*Net to client
            384  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              7  rows processedC.

  • How to create global toolbar for some common operation like add, delete etc

    Hi,
    I want to create one global toolbar which contains buttons for common operations such as add, delete, modify etc.
    I have one globl .jspx page and in its center facet, I am loading my each screen's .jsff page.
    Now I want to create global toolbar on my .jspx page and when I click on toolbar's add button at that time it should call, currently loaded .jsff (loaded in center facet of .jspx page) backing bean's add method.
    How can I get the instance of currently loaded .jsff backing bean in my toolbar's backing bean and also I need it with its current state( means whatever UI components have values I should be able to get it in my instance).
    Regards,
    Devang

    Hi,
    since page templates don't support method expression arguments there are two options I can imagine
    - define a contract between the toolbar buttons and the availability of a managed bean available for the consumer page. If for example each page has a managed bean like <viewId>_toolbar then the Toolbar could reference exposed methods on this bean (which must be consistent)
    - Another option is to have the page passing in the EL string to access the iterator to operate on as an attribute of the template you use. Then you create a ValueExpression from it and call it for the button action events that you point to the managed bean you deploy with the template
    Frank

  • Where do I find instructions for simple iCloud operations like deleting photos I've uploaded to iCloud by mistake?

    Where can instructions for simple operations in iCloud be found? I uploaded a whole bunch of photos unselectively. I'd like to delete them and start over.

    The knowledge base articles for iCloud are a bit scattered.  There's a pretty good help site here: http://help.apple.com/icloud/#mmd0558ce3.  Thre's also a support site here with links to articles: http://www.apple.com/support/icloud/.
    To answer your specific question, if you want to delete photo stream photos, open your my photo stream album, tap Edit, tap the photos you want to delete, tap Delete.  (Unfortunately, there is no "select all" option.)

  • Operator LIKE in validations

    Have not found any documentation or samples on LIKE statement...
    How to use it?  <Variable> LIKE <mask>?
    Thank you.

    Hi,
    In SAP Library under ABAP section there is a documnetation available for this. Else please check with your ABAP team member.
    Regards
    Sreekanth

  • Ignore particualr DML operations, like delete

    User wants to copy all dml changes on sources tables, EXCEPT DELETE, can we set such rules for capture, or propogration, or apply processes? Thanks.

    See the metalink note:
    How To Exclude Specific DML Operations From The Capture Process When Using Streams [ID 239571.1]

  • Validation (GGB0): Using the operation "LIKE"

    Hello,
    I have encountered a small but agitating issue with creating the prerequisite command for the Validation (tcode GGB0).
    Im trying to create a presquisite that would allow the validation to procceed if a certain string of text is not present. My current command in the Prerequisite is <b>NOT ANLA-TXT50 LIKE '%(LVA)%'</b>. Unfortunatley the equation doesnt seem to respond properly.
    What is the solution to this? Or is there another solution (with the same results), that I can use?
    Thank you and good day.

    Chad ,
    cannt u make use of Exit in that GGB0 , check the Z version of  program GGBS000.
    these validations are associated with this program
    Regards
    Prabhu

  • ALV Operations like Insert,Delete,Change

    Hi all,Iam using 'REUSE_ALV_GRID_DISPLAY',my client want Insert/Delete/Change functionalities in my output.How to achive this? Any example?
    Please dont provide examples with classes,I want to do it with 'REUSE_ALV_GRID_DISPLAY' only.

    Check this program for reference to know how to change values
    BCALV_FULLSCREEN_GRID_EDIT
    Cheers,
    Kothand

  • 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

Maybe you are looking for

  • JSP Debbuging -Error: 'class' or 'interface' expected-

    Hi, Does anybody know why am I getting the following error when trying to either debug or run a JSP? Error: 'class' or 'interface' expected This happens with JDeveloper 9.0.2.829 It was running just OK, when running from the Navigator Panel (Right cl

  • Dates for billing cycles

    Does my billing cycle start on the day of my purchase and end on the same day of the next month? If I don't use some of the minutes on my plan, do I lose them or do they roll over? If I have a plan that starts, for example on the 15th and I use all m

  • 1 last question :)

    There is something wrong with my banner picture when viewed in IE. there is a gap before the picture and I am wondering how to fix that. Look for yourself www.income-education.com

  • Mass Maintenance of EDI Partner Profiles

    Hello SDN folks,   my customer is a large multinational - and they are beginning to run into difficulties in the management of their EDI partner profiles. The problem is that there are thousands of external parties that must be communicated to via ID

  • I am trying to visit a website that requires explorer as the browser and I don't know how to download it onto my MacBook Air.

    Can someone help me download Explorer to my Macbook Air?  I am trying to visit a website that requires Explorer as my browser.