Different results for the semantically the same queries

Hi,
I'm encountering a very odd problem. Before providing an XQuery code, I will ask on the abstract level. I have an XQuery module with my own functions defined. Then in my main query I import that module and execute one function from there. I get let's say 5 results. However if I copy that module into the body of the main query and execute the same function, I get 53 results. Can anybody tell me please, what might be wrong? Any pitfalls?
Vyacheslav

I narrowed down the query and the module code.
module:
module namespace mmt = "http://omdoc.org/ns";
declare namespace abox = "http://omdoc.org/abox";
declare function mmt:importsaux($graph as element()*, $tovisit as xs:string*, $visited as xs:string*) as xs:string* {
  if (empty($tovisit))
  then $visited
  else let $to   := $tovisit[1],
            $from := $graph[@subject = $to]/@object[not(.=$visited)] 
        return mmt:importsaux($graph, ($from, $tovisit[not(.=($to,$from))]), ($visited, $to))
};The main query:
import module namespace mmt = 'http://omdoc.org/ns' at 'http://alpha.tntbase.mathweb.org/repos/cds/db/mmt.xq';
declare namespace abox = "http://omdoc.org/abox";
declare function mmt:importsaux2($graph as element()*, $tovisit as xs:string*, $visited as xs:string*) as xs:string* {
  if (empty($tovisit))
  then $visited
  else let $to   := $tovisit[1],
            $from := $graph[@subject = $to]/@object[not(.=$visited)] 
        return mmt:importsaux2($graph, ($from, $tovisit[not(.=($to,$from))]), ($visited, $to))
(: change this to importsaux2 in order to change number of results :)
mmt:importsaux(collection('xml_content.dbxml')[dbxml:metadata('tnt:type')='mmt']/abox:mmtabox/
                             abox:relation[@predicate='HasOccurrenceOfInImport'],
                            "http://cds.omdoc.org/logics/first-order/model_theory/fol.omdoc?FOLMOD",
)So if I execute the query as it is, then I get 5 results. If I change the function name from the main query from importsaux to importsaux2, then I get 53 results. Those two functions are identical, but is in the module and another is in the query body. Don't know why the results are different.
Vyacheslav

Similar Messages

  • PreparedStatement & regular Statement - different results for same select

    I was wondering if someone could either
    i) try this out for me to confirm my results or
    ii) let me know what I am doing wrong
    I'm one of the developers on a product and am currently investigating localization for the Thai language...just checking to see that Java and Swing have no problems with it. The only bewildering thing which has happened is noticing that some values which are fetched from the database display in Thai perfectly and other values display as a garble. Sometimes the exact same column is displayed correctly in one part of the program but is not OK in another part. I think I've figured out what it going on and suspect a bug in Oracle's JDBC:
    Some selects were configured as PreparedStatements and those return the Thai properly. The more common case however was for programmers to use a simple Statement object for their select and it is in those that the multi-byte strings don't get returned properly.
    The following code shows the problem that I am experiencing. I am basically executing the exact same select in 2 different ways and they are both giving different results as long as the column being queried contains a Thai character. If someone could grab and check it out and let me know if they see the same thing, I'd appreciate it. Just change the column/table name and the username/password/databaseIP to get it to run.
    <code>
    import java.sql.*;
    public class SelectTest {
    public static void main(String[] args) {
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection( "jdbc:oracle:thin:@10.4.31.168:1524:ora8",
    "dms_girouard",
    "girouard");
    String sqlCommand = "select C0620_Title from T0620_SwSheet";
    Statement statement = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    ResultSet resultSet1 = statement.executeQuery(sqlCommand);
    while (resultSet1.next()) {
    if (resultSet1.getString("C0620_Title") != null) {
    System.out.println("resultSet1 Title = " + resultSet1.getString("C0620_Title"));
    PreparedStatement preparedStatement = conn.prepareStatement(sqlCommand);
    ResultSet resultSet2 = preparedStatement.executeQuery();
    while (resultSet2.next()) {
    if (resultSet2.getString("C0620_Title") != null) {
    System.out.println("resultSet2 Title = " + resultSet2.getString("C0620_Title"));
    catch (Exception e) {
    System.out.println(e.getMessage());
    </code>

    Hi Peter,
    Are you using NCHAR column for Thai , or is your database character set set for Thai.
    If you are using a NCHAR column for holding Thai data, then you have to use the
    OraclePreparedStatement.setFormOfUse(...) before executing the select.
    Regards
    Elango. Hi Elangovan,
    Thank you for answering.
    The datatype on the column is VARCHAR2.
    I did my initial tests without doing anything special to make sure the database is localized for Thai, and I was happy to find that almost everything still worked fine - I was able to save and retrieve Thai strings to the database almost perfectly.
    The only problem I discovered was the difference between Statement and PreparedStatement selects on a column containing Thai. Colleagues of mine have said they see the same thing when testing on a Oracle database which has been configured specifically for the Thai customer.
    I read somewhere that the current JDBC drivers are using an older version of the Unicode standard than the most current version of the Java SDK and that it was causing some problems with Korean. I'm wondering if maybe it's the same problem with Thai.

  • After upgrading to iOS 8, the weather app does not show up results for any of the Indian States/cities

    After upgrading to iOS 8 on my iPhone 5, the weather app does not show up results for any of the Indian States/cities. Can Apple look into this or does anyone have a solution to this.

    Swipe from bottom of days listed ("Wednesday, Thursday, Friday, etc")  upwards.  I thought it was gone too but it's still there~just takes different way to access it.

  • Different results for same query on different servers

    1. database being converted from 7.3.4 to 9.2
    2. query is executed on both servers
    3. different results!
    The tables and data are the same, and indexes are setup on new server. EXPLAIN PLAN was run on both but with (predictably) widely different results.
    I know, not much detail here, but has anyone ever ran into anything like this?
    Thanks,
    Pat

    Folks,
    Here is the relevant information for this problem. The attributes have been changed for confidentiality. If you need any other information let me know.
    Thanks,
    Pat
    Query:
    SELECT
    one,two,three,four,a.five,six,seven,
    a.eight,a.nine,
    to_char(ten,'99999.99'),to_char(eleven,'99999.99'),
    to_char(twelve,'99999.99'),to_char(thirteen,'99999.99'),
    fourteen,fifteen,sixteen,seventeen,eighteen,
    nineteen,twenty,twentyone
    FROM
    table1 a,
    table2 b
    WHERE
    a.five = b.five
    AND one = 'X'
    AND six = ' '
    AND three != 12345
    AND three IN
    (SELECT DISTINCT
    three
    FROM table3
    WHERE
    one = 'X'
    AND twentytwo = 'XYZ'
    AND twentythree != 0
    AND twentyfour != 0
    AND twentyfive = 'Y'
    AND (a.five IN
    (SELECT DISTINCT
    five
    FROM table1
    WHERE
    one = 'X'
    AND three IN (12345)
    Table1:
    one          varchar2(1)     not null     PK
    two          varchar2(20)     not null     PK
    three          number(5)     not null     PK
    four          number(2)     not null     PK
    five          number(6)     not null     PK
    six          varchar2(4)     not null     PK
    seven          number(4)     not null
    eight          varchar2(8)     not null
    nine          date          not null
    ten          number(7,2)
    eleven     number(7,2)
    twelve     number(7,2)
    thirteen     number(7,2)
    Table2:
    five          number(6)     not null     PK
    fourteen     varchar2(5)     not null
    fifteen     varchar2(5)     not null
    sixteen     varchar2(2)     not null
    seventeen     varchar2(35)     not null
    eighteen     varchar2(4)     not null
    nineteen     varchar2(2)
    twenty     varchar2(1)
    twentyone     number(6)
    Table3:
    one          varchar2(1)     not null     PK
    twentytwo     varchar2(12)     not null     PK
    two          varchar2(20)     not null     PK
    three          number(5)     not null     PK
    four          number(2)     not null     PK
    twentysix     number(2)     not null     PK
    twentyfive     varchar2(1)     not null
    nine          date          not null
    twentythree     number(13,8)     not null
    twentyfour     number(12,8)     not null
    twentyseven     varchar2(1)     not null
    eight          varchar2(8)     not null
    Explain - Oracle9i (default, with CBO):
    SELECT STATEMENT
    RECURSIVE EXECUTION SYS_LE_3_0
    RECURSIVE EXECUTION SYS_LE_3_1
    TEMP TABLE TRANSFORMATION
    HASH JOIN
    HASH JOIN
    HASH JOIN
    TABLE ACCESS FULL SYS_TEMP_0FD9D6603_AB874A
    TABLE ACCESS BY INDEX ROWID TABLE1
    BITMAP CONVERSION TO ROWIDS
    BITMAP AND
    BITMAP MERGE
    BITMAP KEY ITERATION
    TABLE ACCESS FULL SYS_TEMP_0FD9D6603_AB874A
    BITMAP CONVERSION FROM ROWIDS
    INDEX RANGE SCAN TABLE1INDEX03
    BITMAP MERGE
    BITMAP KEY ITERATION
    TABLE ACCESS FULL SYS_TEMP_0FD9D6602_AB874A
    BITMAP CONVERSION FROM ROWIDS
    INDEX RANGE SCAN TABLE1INDEX04
    TABLE ACCESS FULL SYS_TEMP_0FD9D6602_AB874A
    TABLE ACCESS FULL TABLE2
    Query results - Oracle9i (with CBO):
    X|A | 1| 0| 22| | 1|08-MAR-02|XYZ | | 24.00| | |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
    X|B | 2| 1| 22| | 7|04-DEC-01|XYZ | | 3.25| 8.00| |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
    X|C | 3| 1| 22| | 1|14-AUG-02|XYZ | | 10.35| | |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
    X|D | 4| 1| 22| | 6|11-JUL-02|XYZ | | .00| 13.90| |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
    X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
    X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
    X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
    X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
    X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
    (approximately 4550 rows returned)
    Explain - Oracle9i (ALTER SESSION SET OPTIMIZER_METHOD=RULE;):
    SELECT STATEMENT
    MERGE JOIN
    SORT JOIN
    NESTED LOOPS
    NESTED LOOPS
    VIEW VW_NSO_1
    SORT UNIQUE
    TABLE ACCESS BY INDEX ROWID TABLE3
    INDEX RANGE SCAN TABLE3INDEXPK
    TABLE ACCESS BY INDEX ROWID TABLE1
    INDEX RANGE SCAN TABLE1INDEX03
    TABLE ACCESS BY INDEX ROWID TABLE2
    INDEX UNIQUE SCAN TABLE2INDEXPK
    SORT JOIN
    VIEW VW_NSO_2
    SORT UNIQUE
    TABLE ACCESS BY INDEX ROWID TABLE1
    INDEX RANGE SCAN TABLE1INDEX03
    Explain - Oracle 7.3.4:
    SELECT STATEMENT
    MERGE JOIN
    SORT JOIN
    NESTED LOOPS
    NESTED LOOPS
    VIEW
    SORT UNIQUE
    TABLE ACCESS BY ROWID TABLE3
    INDEX RANGE SCAN TABLE3INDEX03
    TABLE ACCESS BY ROWID TABLE1
    INDEX RANGE SCAN TABLE1INDEX03
    TABLE ACCESS BY ROWID TABLE2
    INDEX UNIQUE SCAN TABLE2INDEXPK
    SORT JOIN
    VIEW
    SORT UNIQUE
    TABLE ACCESS BY ROWID TABLE1
    INDEX RANGE SCAN TABLE1INDEX03
    Query results - Oracle 7.3.4:
    X|A | 1| 0| 22| | 1|08-MAR-02|XYZ | | 24.00| | |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
    X|B | 2| 1| 22| | 7|04-DEC-01|XYZ | | 3.25| 8.00| |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
    X|C | 3| 1| 22| | 1|14-AUG-02|XYZ | | 10.35| | |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
    X|D | 4| 1| 22| | 6|11-JUL-02|XYZ | | .00| 13.90| |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
    X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
    (approximately 1150 rows returned)
    Indexes (used):
    TABLE1INDEX03     (three)
    TABLE1INDEX04     (five)
    TABLE2INDEXPK     (five)
    TABLE3INDEXPK     (one,twentytwo,two,three,four,twentysix)
    Discussion:
    Notice the repeating result for X,E,5,5,23,.... in the Oracle9i retrieval using CBO.
    The execution of this query returned approximately four times the number of rows as
    Oracle 7.3.4 using RBO. This is a function of how many "fours" there are in table3
    that have matching "threes and fours" in table1. If you put a DISTINCT clause at the
    very front of the query (SELECT DISTINCT one,two,three ....) then the result is
    accurate and the same as Oracle 7.3.4. In one execution of this query, 27,000 rows
    are expected to be returned, but the server returned over 1 million rows!
    When RBO was used on Oracle9i, the results were identical to the ones on Oracle 7.3.4.

  • P/L A/c for a single day gives different results for different users

    Hi!
         We have SAP B1 8.81 (PL 09) in our office. P/L Account for a particular date gives different value for a single account (Other Income Account) for one user and a consistent value for all other users. The user in question is a super user and does not seem to pick a specific entry posted in the Other Income Account for that day thus giving erroneous result. I have checked the Trial Balance for that day and it gives proper result. Only the P/L account gives erroneous data. Could anyone help with the reason for this.
    Thanks
    Sreekumar

    Hi Jitin,
              Thanks for your reply.
              I tried the way you mentioned. However, the result is the same.
              The entry that I'm talking about is an automatic journal entry posted through the Outgoing Payment option.
              To make it more clear, an outgoing payment to a vendor was posted on 05/19/11 for 1,42,178.32. The check was drawn only for 71,089.16 which was the correct amount and the remaining amount (71,089.16) got posted in the Other Income account. The P/L account for this date is not picking the amount of 71,089.16 in the Other Income Account.
    Thanks & Regards
    Sreekumar
    Edited by: Sreekumar on Jan 31, 2012 5:58 PM

  • FM9 Save CMYK As PDF again: different results for instances of one character

    Hi,
      A customer sent me an FM9 document that uses the Symbol font. When he saves the document as PDF, without converting CMYK to RGB, one instance of a character in this font appears in the PDF as a different character in the same font. Other instances of the same character in the same document are fine. Saving as PDF changing CMYK to RGB produces correct results.
      Does this sound like the usual don't-use-CMYK-and-Save-as-PDF-with-FM9 type of problem? Or should we look for something else?
      Minor variations of the document cause the problem to go away:
    1. Deleting some earlier instances of characters in this font cause the problematic one to appear as expected.
    2. Some characters in this font occur in tables. Converting those tables to paragraphs "fixes" the problem.
    3. Saving as PDF under Win 7 from FM10 and FM 11 produces expected results.
      We have only seen the problem on a Win 7 system. On Vista and XP, we get correct results. Editing the document on Vista and saving it as PDF on Win 7, however, fails. A MIF wash does not fix it. Deleting and reinserting the problematic character or the table row in which it occurs does not fix it. While the original document was structured, removing structure did not fix it. Nor did changing master pages.
      We started with a longer document and repeatedly deleted content until we had a much shorter document that fails. Somewhere along the line, the erroneous character changed
      We can change the documents for this project to convert CMYK. I just don't know if doing so simply masks one particular instance of a general problem, or if CMYK is the real problem.
      Thoughts?
         --Lynne

    Lynne,
    The FM9 and first versions of FM10 (fixed with the 10.0.2 patch) had very buggy behaviours if the SaveAsPDF to CMYK option was used. Many fonts (notably OTF Pro and WGL-TT fonts) would drop characters or even entire blocks of text. The RGB option worked properly. The underlying cause was in part to due to using the old Unix Level1 PS header code for the postscript headers in the CMYK mode.
    If the client still has to use FM9 and needs proper CMYK, then I would highly recommend that they use Jacob Schäffer's PubliPDF (now on a GPL license, i.e. a freebie). This maps the postscript RGB output colours to CMYK via user specified settings before invoking Distiller.
    It can be downloaded from here: http://design.grafikhuset.dk/index.php/kontakt/downloads/grafikhuset-publi-pdf
    For more details and documentation, see: http://www.grafikhuset.net/PubliPDF/

  • Different results for table and dimension operator

    hi
    I am new to Oracle and specially Data Warehousing.
    I created a mapping with a target operator Dimension, it does not give the desired result. Then I changed the target operator to a table, which gives the expected result. All others are the same like the join condition etc.
    I think there is some problem with the dimension, please, help me finding the problem of the dimension.
    Details of the dimension: there are two levels in the dimension. the surrogate key for both the levels is the same (ID) but business keys are different. The business key of the level 1 appears in level 2 and is properly mapped to the same attribute. the surrogate key of both the levels in not mapped to any attributes.
    regards
    Arif
    P.S: I tried to include a screen dump of the mapping here, but not possible.

    I used @section and <?fo:page-number?> of <?fo:page-number-citation:xdofo:lastpage-joinseq?> but I still get wrong numbering by group
    Group1:- 1 of 6
    Group1:- 2 of 6
    Group2:- 1 of 6
    Group3:- 1 of 6
    Group4:- 1 of 6
    Group4:- 2 of 6
    the syntax <?fo:page-number-citation:xdofo:lastpage-joinseq?> is getting total document pages instead of group pages. Desired output is
    Group1:- 1 of 2
    Group1:- 2 of 2
    Group2:- 1 of 1
    Group3:- 1 of 1
    Group4:- 1 of 2
    Group4:- 2 of 2
    Below is my syntax
    In Header section <?for-each@section:G_VENDOR?>
    <?fo:page-number?> of <?fo:page-number-citation:{generate-id()}?>
    In Body
    <?start:body?>
    <?end body?>
    <?split-by-page-break:?>
    <?end for-each?><fo:block id="{generate-id()}"/> --this is in form field
    Please help.
    Thanks,
    Venkat

  • Date function giving different results for different connections

    Hi there,
    I am relatively new to BusinessObjects universe design, so please forgive me if this turns out to be a UTS (user-too-stupid) error.
    I have created two universes. They are identical apart from the fact that they connect to different data marts (a live one and a testing one).
    Within both universes there is an object with the following SQL:
    CAST(CAST(( DispatchDateCalendar.yearNumber ) AS VARCHAR) + '/' + CAST(( DispatchDateCalendar.monthNumber ) AS VARCHAR) + '/01 00:00:00' AS DATETIME)
    When  I use the universe using WEBI connected to one data mart, I correctly get a set of dates and a corresponding set of dates with the day set to 1 (e.g. 23 Mar 2005 and 1 Mar 2005), but I change the WEBI query to point to the other universe, it incorrectly sets the month to 1 and leaves the day alone (i.e. the above to 23 Jan 2005).
    When I run this using MS SQL Server Management Studio as part of a query against either data mart, I get the same results for both data marts:
    SELECT
      DispatchDateCalendar.date,
      CAST(CAST(( DispatchDateCalendar.yearNumber ) AS VARCHAR) + '/' + CAST(( DispatchDateCalendar.monthNumber ) AS VARCHAR) + '/01 00:00:00' AS DATETIME)
    FROM
      DIMVolume INNER JOIN DIMIssue ON (DIMVolume.volumeKey=DIMIssue.volumeKey)
       INNER JOIN DIMCalendar  DispatchDateCalendar ON (DIMIssue.issuePublicationDate=DispatchDateCalendar.date)
    WHERE
      DIMVolume.volumePublicationYear  =  2008
    Has anyone got any advise on how I go about finding the cause of this problem and correcting it?
    I asked our DBA who said he wouldn't know where to start looking.
    Thanks in advance,
    Paul

    Don't have any links (oracle documentation search?). Currently the databases I work with are mostly NLS_CHARACTERSET WE8MSWIN1252 and I need to ensure that '£' and other characters are displayed correctly so a few years ago (after a little googling about the difference between windows and command line tools) I put host chcp 1252 in my glogin.sql.

  • List of deployed applications. Different results for different MBean hierarchies

    Hello there,
    When I list the deployed applications, I am getting different results depending what MBean hierarchy I am querying:
    serverConfig():
    wls:/MY_WEBLOGIC_DOMAIN/serverConfig> listApplications() APPLICATION_1APPLICATION_2
    domainRuntime():
    wls:/MY_WEBLOGIC_DOMAIN/domainRuntime/AppRuntimeStateRuntime/AppRuntimeStateRuntime> ls()
    -r--   ApplicationIds                               java.lang.String[APPLICATION_1, APPLICATION_2, APPLICATION_3]
    Any idea why is APPLICATION_3 in the list?
    Thanks in advance,
    Luis
    ps: if I ask directly to the managed server:
    wls:/MY_WEBLOGIC_DOMAIN/domainRuntime/ServerRuntimes/prodGAD_1> ls('ApplicationRuntimes')
    dr--   bea_wls9_async_response
    dr--   bea_wls_cluster_internal
    dr--   bea_wls_deployment_internal
    dr--   bea_wls_diagnostics
    dr--   bea_wls_internal
    dr--   APPLICATION_1
    dr--   APPLICATION_2

    Hello Vijaya,
    Thanks for your answer, yes you are right, in my config.xml I can see that application:
      <app-deployment>
        <name>APPLICATION_3</name>
        <target>...</target>
        <module-type>ear</module-type>
        <source-path>...ear</source-path>
        <security-dd-model>DDOnly</security-dd-model>
      </app-deployment>
    But at the moment that I read your response I had already restarted the AdminServer. This re-start has solved the issue.
    Thanks,
    Luis

  • Closing an application has different results for different applications

    Hello,
    what determines if an application quits or just close when you click the red X button? For example when you close Safari, the application stays in the dock as running application even if there are no open windows left. If you close iPhoto, the application quits.
    Any idea? And is there a way to control this?
    Thanks

    If the app can do something with all windows closed, it will stay open when you Close the window. The close button closes windows. The Quit command quits applications. The application developer controls whether or not closing the last document window quits the app.
    An app will stay open as it assumes you may want to start a new document. It costs virtually nothing to keep an app open, but takes some time to open the app and make it ready to create a new document.
    iPhoto has nothing useful to do without the viewer window open, so it quits the app. Same with System Prefs. However, Text Edit, Word, etc. are ready for you to start creating a new document. Mail can receive email with no windows open.

  • Different results for the same query and same data !  (oracle 9i)

    Hi,
    This is a mystery for me. I've got on my database exactly the same data that my customer (exported schema). We both launch the same query (generated by the software that we sold him). This query has a criteria IN (SELECT MAX()...) to get only data from the last year.
    The query gives 477 rows on my computer (correct answer), but no row on his! We have the same data! The only difference is the Oracle release : 9.2.0.6.0 for him, 9.2.0.1.0 for me.
    If he executes the subquery alone, it gives the expected result.
    If he replaces the MAX() in the subquery by the returned value (year 2016), he gets his 477 rows.
    I've rewritten the query with a NOT EXISTS, and now all is fine. (Less efficient but it works).
    I have no rational explication. Did I miss something ?
    Thanks for any answer.
    This is the query:
    SELECT ...
    FROM
    CRA, GRA, ...
    WHERE
    /* subselect */
    (CRA.COLLCOD, CRA.CRANEXE, CRA.CRANCODBUD, CRA.GRANNUM, CRA.CRANCOD1, CRA.CRANCOD2, CRA.CRANCOD3, CRA.CRANCOD4)
    IN (
    SELECT b.COLLCOD, MAX(cranexe), b.CRANCODBUD, b.GRANNUM, b.CRANCOD1, b.CRANCOD2, b.CRANCOD3, b.CRANCOD4
    FROM CRA b
    GROUP BY b.COLLCOD, b.CRANCODBUD, b.GRANNUM, b.CRANCOD1, b.CRANCOD2, b.CRANCOD3, b.CRANCOD4
    AND... /* other filters and joins */

    v9.2.0.1 was full of bugs. a lot of these bugs had to do with "incorrect results", typically associated with old stats or complex queries (certain types of subqueries were very likely to give wrong resutls, due to the way they were rewritten by the optimizer).
    apply the 9.2.0.6 patch set

  • Process emthod in RT.jar producing different result for the same input

    Hi All
    I'm using the process method to manage my prcoess and Runtime to run a command, on onc pc it works fine but on the other it dosen't even though the input are the same, both pc are windows xp. Also there is a debug options which uses log4j, when that is set to true it adds more logging to the code and the code works fine if that is turned on (but there is not a different course of action if debug mode is on, just more logging i.e. if debug.enabled logInfo("more loggin").
    ============Code in question=========
    Process proc;
    proc = Runtime.getRuntime().exec(cmd,envParameters,this.execDir);
    =============Variables=============
    this     ExecCommand (id=6673)     
         async     false     
         cmd     String[7] (id=6674)     
              [0]     "cleartool"     
              [1]     "deliver"     
              [2]     "-str"     
              [3]     "stream:Experiments_Dev@\experiment"     
              [4]     "-pre"     
              [5]     "-target"     
              [6]     "stream:Experiment_Int@\experiment"     
         completed     0     
         envParameters     null     
         execDir     File (id=6672)     
              path     "M:\Experiments_Dev"     
              prefixLength     3     
         executer     DeliverHandler (id=6675)     
         inputHandler     null     
         proc     null     
         sendStream     null

    the rest of the code
    ==========================Code===========================
                   if (log.isDebugEnabled())
                   StringBuffer cmdLine = new StringBuffer("Executing : ");
                        for (int i = 0; i < cmd.length; i++) {
                             cmdLine.append(cmd);
                             cmdLine.append(" ");
                        log.debug(cmdLine);
                   proc = Runtime.getRuntime().exec(cmd,envParameters,this.execDir);
                   StreamGobbler procOutput = new StreamGobbler(proc.getInputStream(),false);
                   StreamGobbler procError = new StreamGobbler(proc.getErrorStream(),true);
                   sendStream = proc.getOutputStream();
                   procOutput.start();
                   procError.start();
    ================code======================

  • Returning Different Results for the  Same Search Value

    I'm creating a word list and I'm using Lookup to find text entries in column D and return values from column A. I can manage one result based on the search criteria however I'm wondering if it's possible to return multiple entries from column A if multiple matches are found in column D:
    As you can see I'm trying to use the formula =LOOKUP("Aggression",D,A) to find all the instances of "Aggression" in column D and return all the corresponding results from column A (audacious, barefaced, and depredation). Lookup however only returns the last match (depredation).

    I wish you'd shown where your LOOKUP function is located and what you're trying to do with it. Are you going to be using these results in another function? Or are you simply wanting to display the results of your search?
    If the latter, there's an elegant way to make this happen. Let's create a single-cell table on the same page, holding the word you're searching for. (Ideally, this could be a drop-down list -- and that can be made to dynamicly hold all the discrete values in column D -- but that's another discussion.) Let's call this table "Search".
    Add a column (which can be hidden) to your original table. Let's insert this next to your column D, making it column E. Cell E2 contains =IF($D2=Search :: $A$1,TRUE,FALSE). Drag/copy that down the column. You'll now have a value of TRUE in this column for all the words you're looking for. Now click on the top of this column E and click "Show More Options".... and click on "Show rows that match the following". Set it to show where Column E is true. You now show only the words in which the "category" matches the search word.
    Change the word in your Search table, and the display of your original table automatically adjusts.
    The nice part is that the entire line is displayed so you can see definitions and contexts as well.
    Vince

  • Why am I getting different results for the same resolution but different Windows boxes, Win 7 and XP

    I am running an .exe on two different windows boxes, one in Win 7 and one on XP.  I set both for resolution 1024 x 768.
    On Win 7 (laptop and old Dell desktop) I have a great looking app.  On the WIn XP boxes all the fonts to large.  THis doesn't make sense to me as all the PC's have the same resolution.
    Has anyone run across this before?
    Mark Ramsdale
    Solved!
    Go to Solution.

    The system fonts for XP and Vista/Win7 are different.
    See
    http://forums.ni.com/t5/LabVIEW/Elements-have-moved-when-opening-vi-with-f3-patch/m-p/1054817
    http://forums.ni.com/t5/LabVIEW/What-can-affect-the-size-of-a-front-panel-object-between/m-p/1058607...
    http://forums.ni.com/t5/LabVIEW/Font-size-on-Windows-7-with-LabVIEW-2009/m-p/1055114/highlight/true#...
    and several other similar threads.

  • Why different result for the same jsp file run at oc4j902 and oc4j903?

    In a jsp file, It use class in "java.util" package, It is not import "java.util.*".
    The jsp file run at oc4j 902:
    It run correctly
    The jsp file run at oc4j 903:
    appear Compile error.
    the error is:
    "OracleJSP: oracle.jsp.provider.JspCompileException: "
    The jsp file:
    &lt;%@ page contentType="text/html;charset=GB2312"%&gt;
    &lt;%
         ArrayList arrList = new ArrayList();
    %&gt;
    Why?
    thanks for your help!

    Sun,
    pls check
    http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97679/getstart.htm#1007970
    In 902, the following packages were also imported
    java.io.*
    java.util.*
    java.lang.reflect.*
    java.beans.*
    In 903 the above are not imported.
    -Prasad

Maybe you are looking for

  • Can connect to Internet, but not router.

    I know, this is the opposite problem from what most people have. I am trying to connect through a WRT54G v.6 to the ethernet port in the wall (I don't know what the building is hooked up to, we just have ethernet ports next to our cable jacks). If I

  • How do I get 128-bit encryption in Firefox 4.0 for a financial website?

    I need 128-bit encryption capability on my web browser in order to use a specific financial website for bill paying, The site's encryption test shows that Firefox 4.0 (newly installed) does not provide that level of security. Help?

  • Cannot Cancel PO

    Hello, Could someone help me on why i cannot cancel my PO as error msg says that 'No update of sales order from purchase order error v1 348' ? What advice can you give so that i'll be able to delete all the items in the PO. Thanks i need this ASAP

  • Email portfolios

    We updated from Acrobat X to XI (both standard).  We use the email portfolio feature on a daily basis.  In X standard I was able to scroll the top portion listing the emails, but after we upgraded it will no longer scroll.  I have to use the side bar

  • Support Project roles and responsibilities.

    Hi Guru, I am new in SAP BW/BI support Project. What are the roles and responsibilities in support project as a  BW/BI consultant. plz give details with examples. what are the tools are using in support project. and what are the transaction codes usi