Rest query with filter sub-string (contains, not eq)

Hi,
how can I do a REST-query with a filter for a string-column which is only a sub-string? I only found EQ, for example $filter=(name EQ 'tom') which compares the whole string.
But I would like to query records, where a string-column CONTAINS a specific sub-string.
Thx, Tom

Hi Tom,
Do you use it on azure Data Market place? Did you try to add "*" on your query string, like this
post.
Also, you could try this tool from this
thread. Also, for this issue, I suggest you could post it on
SQL forum for better support.
If I misunderstood, please let me know.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • BI Query with Hierarchy in VC does not get correct values

    Hello Gurus,
    I am building a model in VC for Performance Score card using Query as data service.
    I have  the following problem.
    When I execute query in BEx with Hierachy_node variable , it is getting correct values, but the same is getting incorrect values in VC.
    The Hierarcynode variable I am using is a TOP node, then the values including child nodes are also should be displayed, which is working fine with BEx query but not in VC.
    When I execute the query with hierarchy node value as child node I am getting correct values both in VC and in BEx.
    The correct values are not shown only when I use top nodes.
    Please help me in this regard.
    Thanks in advance
    Ganesh

    Hi
    We are facing the same issue. Is this issue resolved? Pls let us know the solution
    Regards
    Aruna

  • Trouble with inserting a string containing a single quote

    Using php with Oracle
    If I do the following two lines before sending my $Query string through the parse function
    $name = "Dominick's";
    $Query = "INSERT INTO customers (name) values ('$name')";
    it gives me the following error:
    Warning: Ora_Parse failed (ORA-00917: missing comma -- while processing OCI function OPARSE)
    If I try and force the single quote to be surrounded by double quotes and therefore not be confused:
    $name = "Dominick's";
    Query = "INSERT INTO customers (name) values (\"$name\")";
    Trying that yields the following error:
    Warning: Ora_Parse failed (ORA-01741: illegal zero-length identifier -- while processing OCI function OPARSE)
    Help
    Jeff

    If it is possible (and here it is) you should use str_replace instead of ereg_replaceThanks for the reminder about str_replace().
    $Query = "INSERT INTO customers (name) values ('".addSlashes($name)."')";This gives an invalid Oracle SQL statement, which will generally fail with
      ORA-01756: quoted string not properly terminatedFor Oracle, single quotes must be doubled, not escaped with backslash.
    Of the solutions to insert the data, I'd prefer using bind variables
    since no escaping or quote doubling is needed.
    -- CJ

  • Query with many sub-selects on the same table

    Hi,
    Please consider the example below (Oracle 11g):
    create TABLE test1 (order_id number, CODE VARCHAR2(10), VALUE NUMBER);
    insert into test1 VALUES (1, 'A', 100);
    insert into test1 VALUES (1, 'B', 200);
    insert into test1 VALUES (1, 'C', 300);
    insert into test1 VALUES (1, 'D', 400);
    insert into test1 VALUES (2, 'A', 10);
    insert into test1 VALUES (2, 'B', 20);
    SELECT order_id,
           CODE,
           VALUE,
           (SELECT VALUE FROM test1 t1
           WHERE t1.order_id = t.order_id
           AND   t1.code = 'B') b_Value,
           (SELECT SUM(VALUE)/COUNT(*) FROM test1 t1
           WHERE t1.order_id = t.order_id
           AND   t1.code IN ('C', 'D')) cd_Value,
           (SELECT COUNT(*) FROM test1 t1
           WHERE t1.order_id = t.order_id
           AND   t1.code IN ('C', 'D')) cd_qty
    FROM   TEST1 t
    WHERE  CODE = 'A';In my real-life case, I don't have 3 but tens of sub-query columns like those. The performance is OK but I was wondering whether there were a better way in terms of performance and maintainability to write this query.
    I thought of the WITH clause but couldn't see how it could help much.
    Please note that some sub-queries can be more complex than just looking up a column, like in column cd_value/cd_qty.
    Any suggestions?
    Thanks
    Luis

    Simpler, but will go for two table scans. You will have to use outer joins according to your requirement.
    select t1.order_id,
           t1.CODE,
           t1.VALUE,
           max(decode(t2.code,'B',t2.value)) b_value,
           sum(decode(t2.code,'C',t2.value,'D',t2.value,0))/nullif(sum(decode(t2.code,'C',1,'D',1,0)),0)  cd_value,
           sum(decode(t2.code,'C',1,'D',1,0))  cd_qty 
    from TEST1 t1,test1 t2
    where t1.CODE = 'A'
    and t1.ORDER_ID = t2.order_id
    group by t1.order_id,
           t1.CODE,
           t1.VALUEEdited by: jeneesh on Feb 7, 2012 11:54 AM

  • Results on query with filter, but zero results when filter removed

    I have been handed the below query and I may be missing something blindingly obvious here but if i run it i get no results
    SELECT lipqoh
    FROM f41021 a , f0006 b
              WHERE      b.mcmcu = a.limcu AND
                   b.mcstyl = 'W';
    if i add the filter a.liitm = 105900 like below data is returned (although the entries are 0 as expected at the moment, this is not always the case)
    SELECT lipqoh
    FROM f41021 a , f0006 b
              WHERE      b.mcmcu = a.limcu AND
                   b.mcstyl = 'W'
    a.liitm = 105900;
    the fields for each of the tables mentioned in the query have the following characteristics
    lipqoh Number NULLABLE
    mcmcu Char(12 BYTE) NOT NULLABLE
    mcstyl Char(2 BYTE) NULLABLE
    liitm Number NOT NULLABLE
    Any guidance would be greatly appreciated

    here is a small sample of the output from the query you provided, the explain plan for the query without additional filter does not mention an index just Partition List Table Access F41021 Full
    LIPQOH MC
    DUMP(B.MCSTYL)
    DUMP('W')
    MCMCU
    DUMP(B.MCMCU)
    DUMP(A.LIMCU)
    0 W
    Typ=96 Len=2: 87,32
    Typ=96 Len=1: 87
    CSW
    Typ=96 Len=12: 32,32,32,32,32,32,32,32,32,67,83,87
    Typ=96 Len=12: 32,32,32,32,32,32,32,32,32,67,83,87
    0 W
    Typ=96 Len=2: 87,32
    Typ=96 Len=1: 87
    CSW
    Typ=96 Len=12: 32,32,32,32,32,32,32,32,32,67,83,87
    Typ=96 Len=12: 32,32,32,32,32,32,32,32,32,67,83,87
    0 W
    Typ=96 Len=2: 87,32
    Typ=96 Len=1: 87
    SOL01
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,49
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,49
    0 W
    Typ=96 Len=2: 87,32
    Typ=96 Len=1: 87
    SOL01
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,49
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,49
    0 W
    Typ=96 Len=2: 87,32
    Typ=96 Len=1: 87
    SOL02
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,50
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,50
    0 W
    Typ=96 Len=2: 87,32
    Typ=96 Len=1: 87
    SOL05
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,53
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,53
    0 W
    Typ=96 Len=2: 87,32
    Typ=96 Len=1: 87
    SOL06
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,54
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,54
    0 W
    Typ=96 Len=2: 87,32
    Typ=96 Len=1: 87
    SOL08
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,56
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,56
    0 W
    Typ=96 Len=2: 87,32
    Typ=96 Len=1: 87
    SOL08
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,56
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,48,56
    0 W
    Typ=96 Len=2: 87,32
    Typ=96 Len=1: 87
    SOL22
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,50,50
    Typ=96 Len=12: 32,32,32,32,32,32,32,83,79,76,50,50

  • What's up with filter bin content search not responding?

    Search function (filter bin content) in the project panel doesn't respond. It always dark gray, not light gray. The search function under the media browser tab runs fine. And everything else works fine: CS6, Intel i7; Nvidia GeoF 670. Windows 7/Professional.
    FIGURED IT OUT. THIS happens when the clips etc you are working with seem to be imported, but aren't. This is most likely to happen with us rookies who are training ourselves on something like video2brain's terrific Learn by Video series. The gotcha is that you  you can work away on this training without actually importing, thus the filter doesn't work. Just go to assets and import a folder and the filter will light up!

    Hi Mike,
    The terms find and process are very general, and can apply to many functions of OS X. Therefore the Search results will be numerous and widespread.
    Try using words that are more descriptive of the information you are looking for.
    The more terms you use, will narrow the field. See the example below.
    I also have noticed that, the "Quote A Phrase" function doesn't work as it used to, unless the phrase is quite lengthly. For example, an entire sentences can sometimes be found.
    For a shorter phrase, I have better luck with searching, if I use search terms in this format search++discussions.
    Which returns These Results.
    Searching for "I have tried to search this discussion area to find out what is happening" returns This.
    ali b

  • Query with creating sub material group

    Hi
    We hv requirement of additional submaterial group with existing material group. i hv configured & its coming in sales org2 tab as below.
    However when i got mm02, and check put input values its asking for input values
    after clicking on continue w/ o project , it goes to IMG screen. If i define material group in OMSF , its not coming as input values. How to get those input values ?
    Sachin

    Did you maintained in the path what mentioned earlier , i can see in material master after maintaining  the material group 1 to 5.
    Even after maintaining this entries you are not able to maintain in sales org 2 do let me know.

  • Mail smart list with filter last week does not work

    I created a smart list in mail to show all emails of last week. It shows the emails of this week. In ML it used to work. any idea?

    Hi FranklyBlackk,
    If you are having an issue where neither iPhone is being recognized by iTunes, either via WiFi or USB, you may find the following article helpful:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    Regards,
    - Brenden

  • Converting a Crystal Report with Many Sub-Reports into CF Report Builder

    I am trying to rewrite a Crystal Reports report which has 11
    subreports in CF Report Builder. In the CR report, each subreport
    has it's own report footer seciton. I have not been able to find
    anything in CF Report Builder that allows me to do the same. Is CF
    Report Builder capable of producing a report with multiple
    subreports?

    Having successfully created a report with 5 or 6 subreports
    (with each sub-report containing a multiple sub-sub reports) I can
    say with confidence, "Yes you can." However the real question you
    should ask is, "
    Should I create a report with multiple sub-reports in CF
    ReportBuilder?" And the answer to that is.... NO, WHAT ARE YOU
    CRAZY!
    If you have something that works in Crystal Reports I would
    suggest you stick with that. Otherwise you're setting yourself up
    for a lot of headaches. Now maybe it was because I started using
    the report builder that came with MX7, but it seems there are still
    quite of few bugs that will leave you shaking your fist at your
    computer. If however you do continue and do the CF Report Builder
    route, be prepared for your application to crash unexpectedly, and
    for many things to not work they way you expect them to. And if you
    ever need help good luck. Take the fact that you had difficulty
    finding good documentation as a sign of how little Adobe supports
    this product.
    CF Report Builder is fine for very simple reports, but don't
    get fancy with it, you'll only regret your decision in the
    end.

  • Java Sub string urgent help

    Hi,
    I need help with the sub string.
    <fs> means field separator. (char)28.
    I have a string like(This is a very big string): "0117<fs> A<fs> 0100 <fs> <fs> <fs>admin <fs>"
    I need to get string like: "0117A0100 <fs>admin".
    Fields in the string are fixed length but some fields may change like"admin" it can be "register".
    Thanks in advance.
    Bachi.
    Edited by: bachi. on Jul 15, 2009 4:21 PM

    Sorry about that, its not home work I am working on message formatting now. Using regular expressions.
    We get the message from the socket like
    0117A0100 .admin.01010000FRAZEE.CA810FA1.admin.2 004030508342717836.1..0.0M1000030001000096..1000.
    I need to spit that message in to fields and then process the message. We need to send the response back in the same format.
    I want to split the string like this. there are some fields which are fixed length and other may change.
    0117,A,0100, ,.,admin.,0101,0000,FRAZEE,.,CA810F,A,1,.,admin,.,2, 0040,30508342717836.1..0.0M1000030001000096..1000.
    Thanks in advance.

  • Filter query with sub query using Dropdown box

    Dear Community,
    I have 2 queries
    1. Main Query with 2 fields:  Project | Project value
    2. Sub Query with 2 fields:  Project group | Project
    Project group can be belonging to number of projects and project can be belong to number of project group (Many to Many).
    My customer wants the main query will open without any filtering.
    When I choose project group from WAD dropdown box, the main query will filtering all the projects that belong to the project group.
    I create WAD; define dropdown box as sub query, and Analysis as main query.
    In the dropdown box I choose "data binding" char and create command "set selection state by binding" (project to project) but it doesnu2019t work. 
    I also try to do this by Replacement Path in the main query, but the variable requires the attribute will be ready for input.
    Thanks a lot
    Yaniv

    I am not sure about your comments on replacement path variable. Without having tried it, here is what I would have attempted:
    The main query needs to use a replacement path variable for Project that is replaced by the results of the sub-query. Sub-query would have a regular input variable for project group. (as a quick test, if you had one analysis item for main query with variable input enabled, it should prompt you to enter Project group).
    Now the drop-down needs to be associated with a javascript function. The javascript function needs to implement command "Set variable state" for the main query data provider to selected value of the drop-down.
    The drop-down should be associated with the sub-query data provider, just used to populate the list of values in drop-down.

  • Query with negated collection.contains

    Hi,
    I'm trying to create a query which should find objects which do NOT belong
    to a certain collection.
    I've tried something like
    (!_user._groups.contains(login) && (login._name == "GROUP_LOGIN"))
    , but this returns the same result as with the negation:
    (_user._groups.contains(login) && (login._name == "GROUP_LOGIN"))
    I've compared the SQL statements of both queries (see below), they are
    equal, too.
    Does JDO support queries like this? If not, is there any workaround?
    Here's the SQL statement of kodo:
    executing statement <4958626>: (SELECT DISTINCT t0.JDOIDX, t0.JDOCLASSX,
    t0.JDOLOCKX, t0.ACCOUNT, t0.CONTENT_ROLE, t0.FIRST_NAME,
    t0.FRAMEWORKUSERX, t0.LAST_NAME, t0.PASSWORD, t0.RETAILER,
    t0.WRONG_PWD_COUNTER, t0.ACCOUNT FROM JDOABSTRUSR t1, JDOABSTRUSR t3,
    JDOUSERGROUP__USERSX t2, UUser t0 WHERE ((t3.NAME = ? AND t0.JDOCLASSX =
    ?) AND t0.FRAMEWORKUSERX = t1.JDOIDX AND t1.JDOIDX = t2.USERSX AND
    t2.JDOIDX = t3.JDOIDX) ORDER BY t0.ACCOUNT DESC):
    [reused=1;params={(String)GROUP_LOGIN,(String)de.d2vodafone.webe.fho.domain.user.User}]
    Regards,
    Andreas

    I can't see any unbound variables in this query - the variable l is used
    in contains() and it is used on the right-hand-side of contains(). Or did
    I misunderstand the meaning of unbound variables?!
    Regards,
    Andreas
    Stephen Kim wrote:
    As I recall, Kodo 2.4.x doesn't handle unbound variables very well. I
    would see if the query is resolved in our 2.5.2 beta (the URL is listed
    in our solarmetric.kodo.beta newsgroup)
    Andreas Thiel wrote:
    Outcome of further experimentation:
    If I use the (not negated) filter
    ((_user._groups.contains(l) && (l._name == "GROUP_LOGIN")))
    , I get the correct, expected result with all users which are member of
    the special login group with name "GROUP_LOGIN". But if I use the
    (negated) filter
    (!(_user._groups.contains(l) && (l._name == "GROUP_LOGIN")))
    , I get a result containing all users NOT belonging to the login group
    (that's ok), but in addition the result contains the users from the the
    first query, too, i.e. all users belonging to the login group (that's
    wrong).
    My parameters: <none>
    My variables:
    de.d2vodafone.webe.common.security.authorization.jdo.JDOUserGroup l
    My arguments: <none>
    Any hints?
    Cheers,
    Andreas
    Andreas Thiel wrote:
    Hi,
    I'm trying to create a query which should find objects which do NOT belong
    to a certain collection.
    I've tried something like
    (!_user._groups.contains(login) && (login._name == "GROUP_LOGIN"))
    , but this returns the same result as with the negation:
    (_user._groups.contains(login) && (login._name == "GROUP_LOGIN"))
    I've compared the SQL statements of both queries (see below), they are
    equal, too.
    Does JDO support queries like this? If not, is there any workaround?
    Here's the SQL statement of kodo:
    executing statement <4958626>: (SELECT DISTINCT t0.JDOIDX, t0.JDOCLASSX,
    t0.JDOLOCKX, t0.ACCOUNT, t0.CONTENT_ROLE, t0.FIRST_NAME,
    t0.FRAMEWORKUSERX, t0.LAST_NAME, t0.PASSWORD, t0.RETAILER,
    t0.WRONG_PWD_COUNTER, t0.ACCOUNT FROM JDOABSTRUSR t1, JDOABSTRUSR t3,
    JDOUSERGROUP__USERSX t2, UUser t0 WHERE ((t3.NAME = ? AND t0.JDOCLASSX =
    ?) AND t0.FRAMEWORKUSERX = t1.JDOIDX AND t1.JDOIDX = t2.USERSX AND
    t2.JDOIDX = t3.JDOIDX) ORDER BY t0.ACCOUNT DESC):
    [reused=1;params=]
    Regards,
    Andreas
    Stephen Kim
    [email protected]
    SolarMetric, Inc.
    http://www.solarmetric.com

  • Query level filter not working in Webi report

    Hi All,
    I am using BOXI R3.1 (SP3), m facing one problem when refreshing Webi report on daily basis. I am using three query level filter as a prompt, but i checked one filter is not working then i need to reapply this filter and rest 2 filter is working fine.
    Can anyone suggest me why problem is coming?
    Regards,

    Hi,
    Prompts are interactive, and come from the query panel. Filters are not interactive, and are set on the report or block. There are also input controls, which are interactive filters
    1. Select the universe in the list of universes to open the Query Panel.
    2. Drag the Year object to the Result Objects pane.
    3. Drag the Number of Guests object to the Query Filters pane and create a report filter that restricts Number of Guests to greater than n.
    4. Click Combined Query.
    The Combined Query pane appears in the bottom left of the Query panel with the two queries joined by UNION.
    5. Click on the second query and remove the Year and Number of Guests objects.
    6. Drag the Reservation Year object to the Result Objects pane.
    7. Drag the Future Guests object to the Query Filters pane and create a report filter that restricts the future guests to greater than n.
    8. Click Run Query.
    Best Regards
    Naveen

  • Not able to migrate a query with not exist clause

    Hi all,
    I'm using Toplink 10.1.3 and I am trying to rewrite the following query with Expression Framework:
    select distinct r.e_ogg_oper_k_oggetto
    FROM regola_accettazione_oper_banc r, oggetto_operazione_bancaria o
    where not exists (
    select 1
    FROM limitaz_ogg_tipo_oper_banc l
    where nvl(l.d_fine_validita,trunc(sysdate)+1)>trunc(sysdate)
    and l.d_inizio_validita <= trunc(sysdate)
    and l.e_tpodv_k_tipo_operazione=:appoggio.tipo_operaz
    and l.e_ogg_oper_k_oggetto=r.e_ogg_oper_k_oggetto
    and l.e_uni_oper_k_unita_oper_util= :appoggio.e_uni_oper_k_unita_oper_esegui )
    and r.e_oper_ban_k_operaz_bancaria=:appoggio.form
    and r.e_ogg_oper_k_oggetto=o.k_oggetto
    and o.e_ogg_oper_k_oggetto is null
    and o.k_oggetto != nvl(:appoggio.oggetto_autom,,'0')
    and o.k_oggetto like substr(:appoggio.oggetto,1,2)||'%'
    and r.d_inizio_validita <= :appoggio.d_contab
    and to_date(nvl(to_char(r.d_fine_validita,DD/MM/YYYY'),31/12/3999'),'DD/MM/YYYY')> :appoggio.d_contab
    and o.f_natura_oggetto in ('G','P') and r.f_oggetto_automatizzato!='S'
    I'm not able to "attach" the not exist clause to the rest of query.
    How can I do it?
    Thank you very much.

    Not exists can be used in an expression through using a ReportQuery sub-query.
    i.e.
    ExpressionBuilder outerBuilder = new ExpressionBuilder();
    ReadAllQuery outerQuery = new ReadAllQuery(Employee.class, outerBuilder);
    ExpressionBuilder subBuilder = new ExpressionBuilder();
    ReportQuery subQuery = new ReportQuery(Address.class, subBuilder);
    subQuery.addAttribute("id");
    subQuery.setSelectionCriteria(
    subBuilder.get("city").equal(outerBuilder.get("address").get("city")
    .and(subBuilder.notEqual(outerBuilder.get("address")))));
    outerQuery.setSelectionCriteria(
    outerBuilder.notExists(subQuery));
    List results = (List) session.executeQuery(outerQuery);
    Refer to the documentation section on sub-queries for more information.
    I would suggest simlpifying the where clause until you get the sub-query working to start.
    You can also always use a custom SQL query in TopLink.

  • Error:SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to read request. --- There is an error in XML document (1, 447). --- Input string was not in a correct format.

    Hi All,
        We have a scenario of FTP-->PI---> Webservice.  While triggering the data in the FTP, it is failing in the PI with the below error
    SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to read request. ---> There is an error in XML document (1, 447). ---> Input string was not in a correct format.
    Can you please help?

    Hi Raja- It seems to be a data quality issue.
    Check for the value @ 1447 position in the xml message that you are trying to send to web service..
    may be a date filed/decimal value which is not in expected format.

Maybe you are looking for

  • Is there a way to create a contact box on photoshop and save as PDF?

    Can someone explain how or where to find a tutorial to create a contact box on photoshop then save as a pdf? Thank you!

  • Import bookmarks from firefox

    My existing Firefox software is corrupt and I am unable to get my bookmarks from my Time Machine.  I either need to find out how to get them out of my Time Machine or import them into Safari.

  • Apps Store opens ITunes Store - Help

    New 8gig iTouch. Was working fine until it was synced with iTunes on my PC. Now when I click the Apps Store, it starts to load then switches and loads the iTunes Store instead. Any Ideas?

  • Focus In Jframe

    I am trying to have a key listener inside a Jframe which will work no matter where the focus is, currently it only works when the focus is at certain locations. How can I do this, here is where I create the frame and components and attempt to get the

  • Newbie - JDev Missing Entities from Tables (JPA/EJB 3.0) Option

    I'm trying to run through the 'Introduction to EJB3.0 Using Oracle JDeveloper and OC4J' tutorial. One of the early steps says to select the 'Entities from Tables' option under the Business Tier/EJB category. I have six options available - CMP Entity