Empty (ignore)

1

Hi,
My problem is a bit different. in the tables i've included the wrong attribute.
CategoryTable
categoryID
criteriaID
RegionTable
regionID
criteriaID
I want to get all the accounts belonging to particular category/region with a particular criteria ID(All AND).so i have to have a query like
select accountID from accountstable acc where
acc.regionID in (select regionID from regiontable where criteriaID = 34)
and
acc.categoryID in (select categoryID from categorytable where criteriaID = 34)
but the problem is if any one of category/region is not having record it wont get me rows for the other condition
I cameup with a solution like this
select accountID from accountstable acc where
acc.regionID in (select regionID from regiontable where criteriaID = 34)
or
(select count(regionID) from regiontable where criteriaID = 34) = 0)
and
acc.categoryID in
select categoryID from categorytable where criteriaID = 34)
or
(select count(categoryID ) from categorytable where criteriaID = 34) = 0)
This works fine as it negates the condition when no row is found. the pblm is it is taking more time
any suggestion??

Similar Messages

  • Minecraft server end of stream

    Haus-MacBook-Pro:Bukkit hau$ java -Xms1024M -Xmx1024M -jar craftbukkit.jar nogui
    161 recipes
    17 achievements
    12:02:16 [INFO] Starting minecraft server version Beta 1.8.1
    12:02:16 [INFO] Loading properties
    12:02:16 [INFO] Starting Minecraft server on 5.119.42.179:25564
    12:02:16 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-1131-g86b7fa8-b1337jnks (MC: 1.8.1)
    12:02:18 [INFO] MLog clients using java 1.4+ standard logging.
    12:02:18 [INFO] Preparing level "world"
    12:02:18 [INFO] Default game type: 0
    12:02:18 [INFO] Preparing start region for level 0 (Seed: 2252740922174884433)
    12:02:19 [INFO] Preparing spawn area: 4%
    12:02:20 [INFO] Preparing spawn area: 48%
    12:02:21 [INFO] Preparing start region for level 1 (Seed: 2252740922174884433)
    12:02:21 [INFO] Preparing spawn area: 0%
    12:02:22 [INFO] Preparing spawn area: 60%
    12:02:25 [INFO] Loaded Essentials build 2.6.4 by: Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology, KHobbits
    12:02:25 [INFO] Essentials: Using config based permissions. Enable superperms in config.
    12:02:25 [INFO] Loaded EssentialsChat build 2.6.4 by: essentials team
    12:02:25 [INFO] Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
    12:02:26 [INFO] Loaded EssentialsProtect build 2.6.4 by: essentials team
    12:02:26 [INFO] Loaded EssentialsSpawn build 2.6.4 by: essentials team
    12:02:26 [INFO] Server permissions file permissions.yml is empty, ignoring it
    12:02:26 [INFO] Done (0.837s)! For help, type "help" or "?"
    12:02:49 [SEVERE] java.lang.NullPointerException
    12:02:49 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:63)
    12:02:49 [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:154)
    12:02:49 [SEVERE]     at net.minecraft.server.Packet254GetInfo.a(SourceFile:16)
    12:02:49 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    12:02:49 [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:46)
    12:02:49 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:94)
    12:02:49 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    12:02:49 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    12:02:49 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    12:02:49 [INFO] /5.119.42.179:54177 lost connection
    >

    Hello Jesse,
    I found a solution for you !
    I had the same problem : opening in encore dvd 2.0 trial a project made in 1.5. Trying to preview the menus, got the "end of stream" error.
    In my project, the problem was a sound, used on a menu, that was bad encoded : it was in 44.1 Khz instead of the "dvd standard" 48 khz. When previewing the menu in 1.5, encore dvd did a transcode. But the 2.0 version seemed to have problems with the transcoded sound, because I replaced it in the menu with a upsampled 48khz sound (out of encore, with a sound software) and, MIRACLE ! it works !!!
    My analysis of the problem is : when you preview a menu, Encore loads in the RAM the whole menus of your projects. Therefore, if you have only one menu bugging, it will affect all your preview !
    I recommend you to check that all you assets are to the dvd standards, and if it still bugs, try to delete the transcodes (in the folder : x:\your project\Sources\Transcodes OR on the C:\Documents and Settings\USER NAME\Local Settings\Temp\Sonic\Transcodes)

  • Before installed ora 11g,  power failed

    Hi,
    i was installed oracle 11g, before end of install completition unfortunately power was failed but that paticular path that files are been extracted, plz advice what to do next action
    regards
    venki

    Run oraInstaller again and give same oracle home path and continue.
    OUI will give warning like directory is not empty , ignore that warning and continue.
    - Virag Sharma
    http://viragsharma.blogspot.com/

  • Receiver File adapter - 'Empty Message Handling' option to ignore not worki

    Hi,
      I am trying to create the Files in receiver based on condition.But I am gettiung error in communication channel when there is no payload. Receiver I am usuing FCC and processing tab I selected -'Empty Message Handling' option to ignore .
    one source -> Target 1 (0..1 occurance in signature tab changed, message mapping and operation mapping)
                 and Target 2 (0..1 occurance in signature tab changed)
    and I put the message type level condition. While creating first message If did not create the Message type in my maaping still my Receiver File communication channel is giving error. even thow I my receiver interface occurance is 0..1
    Right now I am in PI7.1 and SP7 is the bug for support pack do I am missing any thing. and do I need to upgrade any nwe patch. appreciate your help.
    Regards,
    Venu.

    Hi,
    here is the my requirment one source -> two target interfacess (0..1)
    If u have 2 target interfaces,then this is not suffice..... u should make it as 0..unbounded both in operation mapping and message mapping.
    But based on ur requirements posted above i guess u have only one inbound interface at a time based on some conditions....
    But,
    <messages>
    <messages1>
    based on condition first message type not created in mapping.
    <messgaes2>
    The error u r getting is because.... u want only one interface in target at a time....
    Then u should not generate Message1 also in the target.
    So avoid mapping to message1 if u want only message2.
    If both message1 and message2 are created in target means... it is triggering for two interfaces.... so avoid one message1 or message2... based on some conditions u have..
    Still nt solved do post...
    Babu

  • File Receiver Adapter - writes empty message although ignore flag is set

    Hi,
    i have an file FTP receiver channel configured with content conversion. I also have set the "Empty-Message-Handling" flag to "Ignore", so empty messages with 0 kb are not written to the FTP server.
    My problem is now: empty file are written to FTP server although this flag is set to "Ignore".
    For example: A message with the following content arrives at my receiver adapter:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ArticleMaster xmlns:ns0="http://ihle.com/tyredating/core"></ns0:MT_ArticleMaster>
    The resulting file has 0kb.
    Does anyone have an idea why empty message are not getting ignored by this setting? Although the flag is set?
    Thanks in advance,
    MS
    System: PI 7.1 SP 7
    Edited by: Manuel Schlestein on May 12, 2009 5:17 PM

    >
    Manuel Schlestein wrote:
    > Hi,
    >
    > i have an file FTP receiver channel configured with content conversion. I also have set the "Empty-Message-Handling" flag to "Ignore", so empty messages with 0 kb are not written to the FTP server.
    >
    > My problem is now: empty file are written to FTP server although this flag is set to "Ignore".
    >
    > For example: A message with the following content arrives at my receiver adapter:
    >
    > <?xml version="1.0" encoding="UTF-8"?>
    > <ns0:MT_ArticleMaster xmlns:ns0="http://ihle.com/tyredating/core"></ns0:MT_ArticleMaster>
    >
    > The resulting file has 0kb.
    >
    > Does anyone have an idea why empty message are not getting ignored by this setting? Although the flag is set?
    >
    > Thanks in advance,
    > MS
    >
    > System: PI 7.1 SP 7
    >
    > Edited by: Manuel Schlestein on May 12, 2009 5:17 PM
    ideally the file adapter will expect a message with no content in it. so i suggest you use a simple java mapping to check if there is any content between the tags, if there is no content then write out an empty string to the outputstream else pass the same inputstream out

  • How do I have Adobe Acrobat 9.0 calculate the minimum of 10 fields BUT ignore empty fields?

    How do I have Adobe Acrobat 9.0 calculate the minimum of 10 fields BUT ignore the field if it is empty? Currently it counts blanks as 0 so when it comes up with the minimum it will always show 0 unless all 10 fields have values in them.

    You could loop through the fields and add the non-blank values to an array, and use the Math.min method to get the minimum. Here's an example custom Calculate script:
    // Custom calculate script
    (function () {
        // Array to hold non-blank field values
        var fa = [];
        // Loop through the fields...
        for (var i = 1; i < 11; i += 1) {
            // ...get the current field value, as string...
            var v = getField("text1." + i).valueAsString;
            // ...if not blank, add value to the array, as a number
            if (v) fa.push(+v);
        // Set this field's value to the minimum value in the array, otherwise blank
        event.value = fa.length > 0 ? Math.min.apply(null, fa) : "";
    This assumes the fields are named "text1.1", "text1.2", ..."text1.10" and that they're numeric. This type of field naming simplifies the code, so it would be good to use something similar and adjust the getField statement to match.

  • How to ignore the empty file using Receiver file adapter with Coma separato

    Hi,
      I am trying to create the .csv file at the receiver but when there is no data I wan to ignore the file even I do not want to create the file with comma also (I just went and check in my file system created with commas)
    Source1 -> T1
           T1
            -> S1
                  ->Field1
                  -> Field2
    Because I am using receiver side FCC populating with empty node
    Based on condition T1 is populating when condition fails I am populating target T1 and structure elements are mapped with constant. 
    Ex: Target payload when condition failed below data is populating ..
    In this I want to ignore creating the file.
    <T1>
    <S1>
    <Field1/>
    <Field2/>
    </S1>
    </T1>
    Here Is the my content conversion parameters,
    S1.fieldNames - Field1,Field2
    S1.fieldSeparator - ,
    S1.endSeprator u2013 u2018nlu2019
    I used processing tab u2018Ignoreu2019 option id did not worked. Appreciate your help. 
    Regards,
    Venu.

    Hi Raj,
       I went my receiver mapping signature tab I chagned occurance from 1 to 0..1
    then my mapping got lossed now message type level I put the condition. When my condition not satisfy I am not creatin gthe target node itself.(I mean here message type) Messages ->message1 only is creating..
    but in SXMB_MONI below error I am getting..
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">GENERIC</SAP:Code>
      <SAP:P1>Split mapping created no messages</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Split mapping created no messages</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thanks for your response.
    Regards,
    Venu.

  • Ignore empty Payload

    Hello All,
    I have a Proxy-PI-SOAP scenario. There are situations when proxy generates messages with no payload. In that situation, it throws an error in PI (RWB -> Message Monitoring -> AE) as there is no node getting generated.
    I can apply the rule in Proxy code not to send the message to PI in case there is no payload, but business won't allow that.
    So, I have to handle this in PI.
    I can't use the dummy receiver, as it will again throw an error in case it is unable to find the receiver (I can't create a dummy receiver on the Prod box as per my Client).
    I would like to know what other option I am left with? I don't want to encounter any errors in the MONI or elsewhere. How I can "stop" the processing of those messages which are having empty payload?
    Just to add - I am using XSLT mapping.
    Any suggestions will be highly appreciated. Thanks for your time.
    --Abhi
    Edited by: Abhi_1516 on Jan 4, 2010 7:34 PM

    Hi Abhi,
    You can use the "Ignore" option in the Receiver Determination. Put a condition for the root node existence, if found send the message to the desired target else use the option "If no receiver is found" and check the radio button "Ignore".
    Just to let you know that with Ignore option, the messages will still show successful in RWB.
    Hope this helps.
    Regards,
    Neetesh

  • Recevier adapter empty message-handling ignore

    Hi all,
    I configured file receiver adapter with file content conversion (comma separated).
    In processing parameters Empty-message handling is set to Ignore.
    Payload that is in message generated from SAP is:
      <?xml version="1.0" encoding="utf-8" ?>
         <mt_ap_invoice xmlns:prx="urn:sap.com:proxy:DES:/1SAI/TAS128FC2C2C3C8E901DC22:700:20 08/06/25" />
    There are no any data that is filling structure (structure main node is defined as 0...unbounded) and still empty file with 0 bytes is created.
    Please can you tell what is wrong in this setup as In case of empty message I don't want that file is generated?
    Regards,
    Nenad

    - open Integration Builder
    - open your file receiver adapter
    - go to tab Processing
    - change Empty Message-Handling to 'Ignore'
    Cheers,
    André

  • How to ignore empty text element while using DOM to parse xml??

    hi everyone,
    i am using DOM to parse an xml file. But i dont know how to cinfig the DocumentBuilderFactory to ignore empty text elements.
    For example, i have an xml file like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
        <child>Tom</child>
        <child>Jerry</child>
    </root>I used the following codes to parse:
    String fname = "Tom-and-Jerry.xml";
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setIgnoringElementContentWhitespace(true);
    factory.setIgnoringComments(true);
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    // Generate a DOM tree from the DOM builder.
    org.w3c.dom.Document dom = builder.parse(new File(fname));
    org.w3c.dom.NodeList list = dom.getChildNodes();
    for (int i=0; i<list.getLength(); i++) {
        System.out.println("Child No."+i);
        System.out.println("NodeName="+list.item(i).getNodeName());
        System.out.println("NodeType="+getType(list.item(i).getNodeType()));
        System.out.println("NodeValue="+list.item(i).getNodeValue());
        System.out.println();
    }The result is not exactly what i want ---- there are 5 children in list!! The 1st, 3rd and 5th are #text and their values are all empty. Only the 2nd and the 4th are the child that i expect.
    It is really troublesome to get all these silly empty texts as sub elements. I tried to get rid of them, but i failed. I just dont understand why factory.setIgnoringElementContentWhitespace(true) did not work.
    Anyone can help me? thanks.
    Heavy ZHENG

    I just dont understand why factory.setIgnoringElementContentWhitespace(true) did not work.That only does something if the XML has a DTD that enables it to know what whitespace can be ignored and what is significant. The API documentation for the method refers you to this document:
    http://www.w3.org/TR/REC-xml#sec-white-space

  • I need a method for ignoring empty lines

    Hi to all,
    i need a method for ignoring empty lines when my program reades a file like that
    start of file
    print "xoxox"
    //ignore this line
    println"xaxaxa"
    //ignore this line
    end of file
    cheers

    Are you having trouble detecting these empty lines? Or are you having trouble not processing them once you've detected them?
    For the first case, you neeed to define "empty." I assumed it meant "containing no characters," and that's what the first solution shows. Your example looks like "empty" means "starts with comment characters."
    For the second case, you ignore them by just not doing anything: read a line
    if (it is not empty) { // by whatever criteria you define for "empty"
       do something with it
    }

  • Ignore empty rows at end

    I have a csv file, which has empty lines at the end.
    My controlfile has a default sequence, due to which it is uploading all the empty lines at the end.
    How can i tell sql*loader to ignore these lines ?
    load data append into table Test_Data_staging
    fields terminated by "," optionally enclosed by '"' trailing nullcols          
    SERIAL_NUMBER SEQUENCE(COUNT,1),
    TEST_DATA_VERSION,
    ENVIRONMENT,
    TEST_DATA_OWNER
    )

    Hi,
    you can add a when clause (WHEN firstcolumn != BLANKS), here is an example:
    LOAD DATA
    INFILE 'C:\Temp\Book1.csv'
    BADFILE 'C:\Temp\Book1.bad'
    DISCARDFILE 'C:\Temp\Book1.dsc'
    TRUNCATE
    INTO TABLE "XTEST"
    WHEN (col1 != BLANKS)
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"' AND '"'
    TRAILING NULLCOLS
    (COL1,
    COL2,
    COL3)or if you want:
    LOAD DATA APPEND INTO TABLE TEST_DATA_STAGING
    WHEN (TEST_DATA_VERSION != BLANKS)
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    SERIAL_NUMBER SEQUENCE(COUNT,1),
    TEST_DATA_VERSION,
    ENVIRONMENT,
    TEST_DATA_OWNER
    {code}
    Edited by: user11268895 on Aug 30, 2010 1:56 PM
    Edited by: user11268895 on Aug 30, 2010 1:56 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Ignore Empty Artboards?

    I am using a slightly modified version of this script to export icons.
    http://www.ericson.net/content/2011/06/export-illustrator-layers-andor-artboards-as-pngs-a nd-pdfs/
    Say I have a document with three artboards named @1x, @2x, @3x, I am using the script to export each layer * each artboard to create my different size icons. Now the problem is that not every layer has artwork on every artboard. Is there a way to ignore empty artboards per layer? or At least how can I tell if an artboard is blank when a specific layer is selected?

    I am using a slightly modified version of this script to export icons.
    http://www.ericson.net/content/2011/06/export-illustrator-layers-andor-artboards-as-pngs-a nd-pdfs/
    Say I have a document with three artboards named @1x, @2x, @3x, I am using the script to export each layer * each artboard to create my different size icons. Now the problem is that not every layer has artwork on every artboard. Is there a way to ignore empty artboards per layer? or At least how can I tell if an artboard is blank when a specific layer is selected?

  • Silent Install -- ignore Non Empty Home

    Doing a 10g install in Silent mode and wondering how I can get past the Non Empty home message.
    During the interactive install, you simply say ignore or continue. I cleared all of the files in the $ORACLE_HOME prior to the install, but it creates a log file in that directory as that is also the $UNIX_HOME. I cannot change the ORACLE_HOME destination because of backup scripts and cannot do an interactive install. So, does anyone know how to bypass the OUI-10029 message during a silent install using a responsefile?
    Thanks.

    Prakash,
        Thank you for the reply.  This error occurs in a previously empty directory.  The oracle installer adds a log and lock directory.  I am using the -force flag only to get around the installer files (not to be confused with the /tmp installer files elsewhere).  I thought about turning validation off but I still need it.
    I can't access the bug.  Is there a way to force the installer to not write to the empty directory before it validates that is is empty by writing the log and lock directory elsewhere?
         However, with the -novalidation flag the WebLogic 12.1.2.0 silent install is proceeding - I will verify it shortly
    Check complete. The overall result of this check is: Passed
    CertifiedVersions Check: Success.
    Expected result: 1.7
    Actual Result: 1.7.0_51
    Check complete. The overall result of this check is: Passed
    CheckJDKVersion Check: Success.
    Verifying data......
    Copying Files...
    -----------20%----------40%----------60%--
    thank you
    Michael

  • Query on MultiProvider by ignoring empty columns

    Hi Experts,
    I have a MultiProvider which contains 2 InfoCubes. InfoCube 1 (IC 1) contains Transport Request (TR) Status information, IC 2 contains Transport Request Object List information. Both ICs are related by the TR IDs. Not every TR has a Object List (better: Objects). Therefore, in IC 1 TRs exist that are not listed in IC 2.
    This leads to empty columns in the MultiProvider due to the union operation which is processed on both ICs. In particular the object related columns (object name, type, etc) are empty, if the TR does have a status information but at the same time without having any object listing, e. g. :
    TR ID - Status - Object Name - Object Type
    T123 - Successfull - # - #
    (# = Empty)
    When executing a query on this MultiProvider which counts the number of Objects I get the correct result, when NOT reporting on the TR ID level. However, if I execute a query which counts the number of Objects per Transport Request (TR ID), I get at least a "1" for EVERY transport request even if there does not exist ANY object within that TR ID (see example above).
    So my question: is there any way to ignore TR IDs when no object information exist for this Transport Request? Thus, the query would only report an object count > 0 if at least one object is associated to a certain TR ID.
    Many thanks for your help!
    Best regards
    Tobias

    I chose
    Exception Agg: Counter for All Detailed Values That Are Not Zero, NUll, or Error
    Ref Char: Object Name
    Activated Calc after Aggr.
    Did not change anything. I still get a table which shows the TR ID (eg T123), Object Name (Empty = #) and Object Count = 1
    I don't get why empty cells are part of the calculation even if the excep. aggr. is configured as described above...
    Any further ideas on that?
    Many thanks!

Maybe you are looking for