Not Equal To Scenario

Dear All,
I have a scenario whereby I have same id with two values.
Lets say TableA with two Columns - Field_id ,Value, Indicator
and populated as
1 x true
1 y true
Now, I want to return no rows if passed in value is either 'x' or 'y' for Not Equal to Condition.
That is, select * from TableA where value != 'y' and field_id = 1; produces one row but I want no rows to be returned possibly with Case statement or similiar.
In my scenario, the row with 'x' value is parent and 'y' is the child. So when I check for Not Equal To condition I need to automatically exclude the parent.
Any help/ideas will be welcome and appreciated.
Edited by: user7981199 on Sep 12, 2011 5:23 PM
Edited by: user7981199 on Sep 12, 2011 5:24 PM

user7981199 wrote:
Dear All,
I have a scenario whereby I have same id with two values.
Lets say TableA with two Columns - Field_id ,Value, Indicator
and populated as
1 x true
1 y true
Now, I want to return no rows if passed in value is either 'x' or 'y' for Not Equal to Condition.
That is, select * from TableA where value != 'y' and field_id = 1; produces one row but I want no rows to be returned possibly with Case statement or similiar.
In my scenario, the row with 'x' value is parent and 'y' is the child. How or why Oracle RDBMS understand or implement this parent/child relationship?
Include additional filter so that "parent" row is NOT returned.

Similar Messages

  • Idocs are not equal to XML message generated

    hi ,
            i am facing problem when i using XI.its not generated idocs equal to XML message generated.

    idocs equal to XML message
    Do u mean that in ur file to idoc scenario, the no of messages sent by file is not equal to no of idocs generated? If yes, then first check in tcode sxmb_moni at XI for presence of message and check for error there
    Please describe ur scenario a bit.
    Regards,
    Prateek

  • Is not equal to operator not working properly in obiee 11g

    Hi ,
    I have 5 members in a dimesion ENTITY.gen5 (A,B,C,D,E) .
    nOW , I am using a *"is equal to "* operator in that ,
    ENTITY.gen5 = A;B .
    Which results in a strange error while running the report :
    Socket communication error : was attempted on somthing which is not socket .
    or sometimes ,
    Socket communication error : Oracle BI server is not currently running .
    So , I tried with giving "is not equal to" i.e . ENTITY.gen5 != C;D;E .
    Then , I am getting A,B,C . C is not desired here .
    FYI , I have renamed ENTITY.gen5 member names in essbase once and after refreshing I tried the above .
    OBIEE version : 11.1.1.6
    essbase version : 11.1.2.1
    Thanks in advance

    In EM, go to Weblogic Domain, right click on bifoundation_domain and on the Security menu choose Application Policies.
    Set Application Stripe to obi and click the blue arrow search button.
    Highlight BIConsumer and click Edit.
    Under Permissions locate Resource Name oracle.bi.publisher.scheduleReport. Highlight this and click Delete...
    Click OK (top right corner).
    Now log your user out of OBIEE and back in again, and the option should have disappeared from their New menu.

  • Not Equals Function is not working in Mapping

    Hi All,
    i have to do mappig based on the Not Equals & And conditions
    If the Material Group starts with "F"
                            And Material Type Not Equals to "ZPRO" means
                                        then send "FG" Else "FC"
    Here Not Equals & And Functions are not giving success, Error throwing like
    Cannot cast ZPRO to boolean] in class com.sap.aii.mappingtool.flib3.Bool method not[ZPRO
    Please help in this
    Regards

    i have to do mappig based on the Not Equals & And conditions
    If the Material Group starts with "F"
    And Material Type Not Equals to "ZPRO" means
    then send "FG" Else "FC"
    Here Not Equals & And Functions are not giving success, Error throwing like
    Cannot cast ZPRO to boolean] in class com.sap.aii.mappingtool.flib3.Bool method not[ZPRO
    the logic applied is incorrect
    NotEquals is a boolean function meaning it will accept only boolean values as input....
    To check if the Material Number is ZPRO or not use the below logic
    MaterialNumber                                            Then(FG)
                          ------equalS(TextFunction) ---- not -----ifWithElse ------------------ Target
    Constant (ZPRO)                                                   Else(FC)
    Regards,
    Abhishek.

  • HOW TO BLOCK DELIVERY OF GOODS WHICH ARE NOT EQUAL TO SALES ORDER

    Hi,
    I want to block user to create any sales invoice for some customers based on  sales order where quantity in sales order is not equal to invoice.
    Thanks,
    Anitha

    Hi Anitha,
    You can do this by selecting check marks on two field under BP Master data >>Payment Terms
    1) Allow Partial Delivery of Sales Order
    2) Allow Partial Delivery per row.
    Thanks,
    Regards,
    Sudhir

  • Is BDC's CALL TRANSACTION 'VA01' is not equals to ONLINE(manual) creation?

    Hi Experts,
    Ours is IS-Oil.
    If the user do not enters/inputs OIC_MOT (Mode Of Transport) at ITEM level on the External Details popup, SAP will get it from Customar Master-KNA1 and populates on it, because its a mandatory field (OIC_MOT), but, do not throws an Error message and interupts the sales order creation process.
    We have a inbound IDOC posting function module for sales order (VA01), which posts the sales oreders by using BDC (CALL TRANSACTION 'VA01') in the system. In this function module, we are not populating the OIC_MOT field contained segment by hoping SAP will populate/default it while it hits CALL TRANSACTION 'VA01' of my BDC of my FM of IB IDOC. But, SAP is not defaulting/populating and throwing error message (saying 'OIC_MOT field is a mandatory input field' data is missing) and IDOC is failing, pls. let me know Wht its so? is the BDC's CALL TRANSACTION 'VA01' is not equals to ONLINE (manual ) creation of sales order?
    Thank you

    Hi
    Several transactions can ba a different behavior between online and bdc process, but if you simulate the trx by SM35 you should find out these gaps
    I don't know OIL vertical, but the main transactions have a bapi can be used insted of BDC program (BAPI_SALESORDER_CREATEFROMDAT2, but perhaps there's a particular BAPI for OIL).
    Max

  • Not Equal to Clause in BODS

    Hello Experts -
    I need to put this condition in transformation  in BODS  table1.col 1 Not Equal to table2.col2 .
    I am not able to find NOT EQUAL TO clause in BODS. I have used  !=  , But  not working.
    However equal to (=) is working fine.
    Any suggestion how I can use not equal to ? (I want it in Where Tab)
    Thanks
    R

    Rohan, please pull/drag your columns into where clause. do not simply write them. and for your condition chk it with " <> " .
    hth
    thx
    deep

  • Succession of TaskSelectionEvent.getTaskIds is not equal to user selection

    Dear all,
    My configuration is JDev 11g R1 (11.1.1.4.0) and I'm currently working at ADF DVT Project Gantts.
    At the moment a problem occurs within the TaskSelectionEvent: The order of the task Ids coming back from TaskSelectionEvent.getTaskIds are not equal to the order of my selection. I 'm selecting first task A and then task B. The method give back [B, A].
    The code snippets based on the Oracle ADF faces demo:
    JSP:
    <dvt:projectGantt id="mygantt" startTime="2008-01-01"
    endTime="2011-12-31" var="task"
    value="#{PG.model}"
    tooltipKeys="#{PG.tooltipKeys}"
    tooltipKeyLabels="#{PG.tooltipLabels}"
    dataChangeListener="#{PG.handleDataChanged}"
    actionListener="#{PG.handleAction}"
    partialTriggers="ctb2"
    taskSelectionListener="{PG.handleSelectedTask}">
    </dvt:projectGantt>
    Java:
    private List selectedTaskIds;
    public void handleSelectedTask(TaskSelectionEvent evt)
    selectedTaskIds = evt.getTaskIds();
    What am I doing wrong?
    Thank you in advance.
    Best regards,
    Tom

    For the use case where tasks need to be linked (user clicks the "Link" icon in toolbar after selecting tasks), getTaskIds() in handleDataChanged() would return ids in the order tasks were selected.

  • OBIEE Answe: Error when using "is not equal to/is not in" option in filters

    Hi there,
    I have a report with a column that uses EVALUATE function. I want to filter the results of the report by the values of this column. There's no problem when I use "is equal to/is in" option in the filter options. However with everything the same, when I try to apply "is not equal to/is not in" option I got an error message reading :
    "Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46047] Datetime value @{pv_Period_End}{@{system.currentTime}[YYYY-MM-DD]} from @{pv_Period_End}{@{system.currentTime}[YYYY-MM-DD]} does not match the specified format. (HY000)"
    The column is the following funciton:
    CAST(EVALUATE('pob.Get_PP_Status(%1, %2)',"ПРЕПИСКА".PP_ID, DATE '@{pv_Period_End}{@{system.currentTime}[YYYY-MM-DD]}' ) AS CHAR(500))
    Do you any ideas where the problem might be?
    Kind regards,
    Danail

    Thru note 1909504 the Function Module FI_TAX_CALCULATION was changed and caused the error on the system of my customer.
    Hope that helps.
    Regards
    Udo

  • Unable to Create "Not Equal to" condition in Variable creation

    Hi ,
    I am getting an error while creating variable at report level,
    Well, my condition at variable creation is ----> sum(A) where [country] <> " x" ...(It is showing the results when the country is equal to x) and the converse for the same ... If I use [country] = "x" .. It is taking as country not equal to x ..
    Please suggest me on this..
    Thanks in advance ....

    Hi ,
    I am getting an error while creating variable at report level,
    Well, my condition at variable creation is ----> sum(A) where [country] <> " x" ...(It is showing the results when the country is equal to x) and the converse for the same ... If I use [country] = "x" .. It is taking as country not equal to x ..
    Please suggest me on this..
    Thanks in advance ....

  • Rounding off Issue (Net Value not equal to Net Price * quantity)

    Dear Gurus,
    Here is an interesting issue.The default calculation done in the pricing procedure is two decimal places.Now we consider a real scneario,consider the net value of 324 quantities of an item calculated is 36,049.86 .When it is divided by quantity  the resulting value of net price is 111.265 but the system shows 111.27 by rounding it off.
    Now here comes the problem,my client needs the rate to be shown on the order script to be two decimal places and the net value should be equal  quantity * net price.So if we apply this,
    324 * 111.27 = 36051.48
    But the net value calculated by the system is 36,049.86.So it can be consluded that:
    "Quantity * Net Price Shown is not Equal to Net Value calculated by the System"
    Need an urgent resolution,project is stuck on this
    Regards,
    Sam Ahmed
    Edited by: Lakshmipathi on Nov 3, 2011 12:14 PM
    Please dont add URGENT in subject or in your post

    Here is the pricing procedure,
    We start with the amount condition types
                                            Unit Price        Units Condition Value
    ZMRP     MRP                     1,700.00           10     PAC     55,080.00      
    ZTRP     Trade Price     1,445.00           10     PAC     46,818.00      
    ZDPR     Dist. Price     1,445.00           10     PAC     46,818.00         (GL)
    Using Trade Price we apply the product discount of 23%
    ZPRD     Product Discount     23.000-     %                    10,768.14-
    Then we send discount amount to the gl by using condition type ZDIS
    ZDIS      Discount Value     100.000-     %           10,768.14-      (GL)
    tHE RESULTING NET VALUE IS  36,049.86      as 46818.00 - 10,768.14
         Order Item value     111.27      1     PAC     36,049.86      
    And the Net Price is 111.27

  • In a purchase order for 3 GR's Quantity does not equal the value

    Hi,
    I have found the difference in one purchase order, there have been 3 GRs where the Qty does not equal the Value.  How has this happened?
    Any guesses why the difference has come.
    Thanks&regards,
    Veena

    Hi Vishal,
    In po history for agt 3 Gr's  Quantity does not equal the values. I hope the difference is Movement types. But exactly where to check this movements i am not getting.
    Can you tell me this which T.code.
    Tx,

  • =Time.isTimeWindowOpenNow - is there a NOT EQUAL option?

    Hi,
    I am trying to stop a job in a chain from running on a Friday for example.
    As a precondition I basically need the opposite of =Time.isTimeWindowOpenNow or I need a option to do a NOT EQUAL to expression.
    Is there a format to use to set a precondition like this?
    (I am using the free version of CPS so I cannot set up custom Time Windows)
    Thanks,
    Adriaan

    Hello Adriaan,
    This function actually exists for days in the week, very useful in static recurring situations. But you know you are more flexible with time windows in terms of compensations for holidays etc.
    Lets get to it though :-):
    =Time.isDayOfWeekInSetNow('_XXXXX_') allows you to specify the days in the week the function should return true. The String contains 7 characters, every _ specifies a day you are not interested in, every X specifies a day you are interested in. The String goes from Sunday to Saturday, so my example specifies the working days.
    Regards Gerben

  • Delivery cost is not equal to actual cost in sales order

    I met a strange phenomenon is the sale cost in SO is not equal to the cost in delivery order.
    I order 3 PCS material and each cost is 43.87 and the total cost is 131.61.
    However when I finished PGI the FI document shows the cost is 131.62. the diff is 0.01
    I don't know how the diff comes.
    Do you know the reason for the above issue?
    Thank you very much for your help.
    Yang

    have you checked whether there are different pricing conditions?
    in Sales order, the price is calculated based on the pricing date in the order, if you then create a new delivery, the price is re-calculated with the delivery date, but the sales order still has the old pricing information.
    Check the pricing log of the sales order and invoice (tab "conditions") to see, which pricing condition is used.
    Or is it possible that your order uses a foreign currency? SO maybe the exchange rate has changed since creating the order.
    Regards
    Ralf

  • KE5Z drilldown report does not equal grr3 report values

    Hello,
    We have a grr3 report where the COGS line is based on functional area and account ranges.  The total displayed on the GRR3 report for the COGS cell matches the values I would expect based on the specified account and functional area restrictions assigned to that cell.  When I drill into the KE5Z report (Profit Center: Actual Line Items), which is identified as a receiver report, the summed value of the "In Company Code Currency" field does not equal what is displayed in GRR3.  The GRR3 report is returning results in the same currency as the company code currency that the report is being executed for so that is not the problem.  During my investigation it looks like the functional area restrictions are not being accounted for when I drill into KE5Z.  Any recommendations on why the restrictions identified for the cell in the GRR3 report would not be carried through to the KE5Z results?  I have been playing with this for hours and have run out of ideas.  I can't determine why the COGS cell value is different than the actual line items sum.  Any help would be greatly appreciated.
    Thanks,
    Jordan

    Hi Jordan,
    in my experience the report-report interface can only pass through selections independently.
    To give an example: I had a report painter report with line 1 that had a selection on two characteristics (say cost element A and cost center B) then a second line with selection cost element C and cost center D selected and finally a line with the sum of the two lines above.
    Now when I jump to a connected line item report by double-clicking on the line with the sum, the parameters passed on are:
    cost centers: B, D
    cost element: A, C
    Therefore, the sum of my line items is not equal to the sum that I departed from, as I get line items with cost element A and cost center D, for example, a combination that was excluded from my original report.
    I hope I made the point clear.
    Another possibility is of course, that the receiving report has additional selection active (in the form used in the dril down report) that were not present in the original report
    Regards
    Nikolas
    Edited by: Nikolas John on Mar 24, 2011 9:21 AM

Maybe you are looking for