Another strange query

hi,
the call:
patient = (PPatient)pm.getObjectById(patientId, true);
yields to the following sql statement:
SELECT COUNT(*) FROM PPATIENT, PPATIENT t0 WHERE t0.OID = ?
this is a dramatically performance problem for us.
the patientId is an id returned by
pm.getObjectId(patient);
then
commit;
and then getObjectById
the above call behaves the same with or with or without an active
transaction!
thanks in advance
matthias.stephan

Matthias & Tibor-
Good catch. You are right: the SQL we are issuing is sub-optimal. I've
made a bug report for this at:
http://bugzilla.solarmetric.com/show_bug.cgi?id=613
You can expect it to be fixed in the near future.
In article <[email protected]>, Tibor Varga wrote:
Hi,
This is something I was also pondering about. Can you explain why the
query performed by Kodo is faster than this one:
SELECT COUNT(*) FROM PPATIENT t0 WHERE t0.OID = ?
This one does not count the number of rows in the given table, it either
gives you 1 or 0, depending on the existence of the sought record.
I feel I'm missing something tricky here. Thank you,
Tibor
Marc Prud'hommeaux wrote:
Matthias,
Passing the "true" argument to PersistenceManager.getObjectById
indicates that the JDO system must verify that the object exists in the
datastore. Thus, Kodo is performing the validation in as fast a way as
it can.
If you do not want datastore-side validation, and instead just want to
grab the object from the cache, then pass "false" as the second
argument.
See also:
http://www.solarmetric.com/javadoc/jdo/javax/jdo/PersistenceManager.html#getObjectById(java.lang.Object,%20boolean)
In article <b59hmm$dai$[email protected]>, Matthias Stephan wrote:
hi,
the call:
patient = (PPatient)pm.getObjectById(patientId, true);
yields to the following sql statement:
SELECT COUNT(*) FROM PPATIENT, PPATIENT t0 WHERE t0.OID = ?
this is a dramatically performance problem for us.
the patientId is an id returned by
pm.getObjectId(patient);
then
commit;
and then getObjectById
the above call behaves the same with or with or without an active
transaction!
thanks in advance
matthias.stephan
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • A strange query of queries bug in CF11?

    Hi,
    I have this strange query of queries result that could be a bug in CF11.  The result is fine in CF10.
    Basically, I have 2 queries, qrA and qrB.  I do a join of the two in joinQr, after which I do a query of qrA.  Since I didn't alter qrA in any way, I would expect newQrA to give me the same result as qrA.  However it only gives me one row ("D").  Now, here's the strange thing:  If I start off qrA with the letters in ascending order ["A", "B", "C", "D"], then newQrA gives me the right result.
    <cfset qrA = queryNew("")>
    <cfset queryAddColumn( qrA, "size", "varchar", [ "D", "A", "B", "C" ] )>
    <cfset qrB = queryNew("")>
    <cfset queryAddColumn( qrB, "size", "varchar", [ "A" ] )>
    <cfset queryAddColumn( qrB, "quantity", "integer", [ 0 ] )>
    <cfquery name="joinQr" dbtype="query">
        select qrA.*, qrB.quantity
        from qrA, qrB
        where qrA.size = qrB.size
    </cfquery>
    <cfquery name="newQrA" dbtype="query">
        select *
        from qrA
    </cfquery>
    <cfdump var="#qrA#">
    <cfdump var="#qrB#">
    <cfdump var="#joinQr#">
    <cfdump var="#newQrA#">

    For your interest, by coincidence, my first test was with
    <cfset queryAddColumn( qrA, "size", "varchar", [ "A","B","C","D" ] )> 
    It turns out that the order "A","B","C","D" works, whereas "D","A","B","C" fails. Quite funny, really.

  • How to Copy RPT of one BEX query to another Bex Query

    Hi,
    I have a Crystal Report-A1 based on one Bex Query ZABC_1. I also have another Bex Query with same output and source named ZABC_2.
    Now i want the to copy A1 to A2 and have A2 referring to ZABC_2.
    The only difference between the 2 queries is the selection option paramenters.
    Please let me know any way forward on this.
    Points will be awared for useful replies.

    Hi Rajesh J Salecha,
    What I understood is like :
    You have two queries and both gives same results but one of the query having a parameter.
    You have one report which is using query1.  Now you want that report to be copied as Report2 and use Query2 instead of Query1.
    If the this is the issue, then you copy Report1 as Report2 and go in Database and change the Data source location to Query2.
    Hope this will help you.  If my understanding is wrong then give us the work flow.
    Thanks,
    Sastry

  • Spatial Query that uses Result of another Spatial Query

    Hi all,
    I am using the SDO_DIFFERENCE Operator to return the difference between a query window and an intersection geometry. This is fine and i get an object back that is cast to a STRUCT using the SDO API. I want then to use this (returned)object in another SQL query that uses the SDO_RELATE Operator. The problem is that i dont know what type it needs to be so that the SDO_RELATE operator will accept it as a valid argument. Has anyone done this before or seen anything like it? Any help will be very much appreciated.
    Keith.

    Thanks for your help,
    I have done the following steps, but i still dont understand why it doesnt work.
    CREATE TABLE val_results (sdo_rowid ROWID, result varchar2(1000));
    CALL SDO_GEOM.VALIDATE_LAYER_WITH_CONTEXT('SHAPES','SHAPE','VAL_RESULTS');
    SELECT * FROM val_results;
    1 null     Rows Processed <3>
    2 AAARDDAAEAAAAA+AAA     13348 [Element <1>] [Ring <1>]
    3 AAARDDAAEAAAAA+AAB     13367 [Element <1>] [Ring <1>]
    SELECT shape_id,SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(c.shape, 0.005)
    FROM shapes c;
    3     TRUE
    2     13348 [Element <1>] [Ring <1>]
    1     13367 [Element <1>] [Ring <1>]
    If my rectangle and polygon is still invalid, can someone tell me why they are invalid. And how can i make them valid?
    Thanks.
    UPDATE:
    I have solved Polygon issue.
    In Spatial Developer's Guide it says:
    Simple polygon whose vertices are connected by straight line
    segments. You must specify a point for each vertex; and the
    last point specified must be exactly the same point as the first
    (within the tolerance value), to close the polygon. For
    example, for a 4-sided polygon, specify 5 points, with point 5
    the same as point 1.
    I have added a point to polygon which is same as first point. Now, it can find the point in polygon.
    INSERT INTO shapes VALUES (4, 'Polygon', SDO_GEOMETRY(2003, NULL, NULL, SDO_ELEM_INFO_ARRAY(1,1003,1), SDO_ORDINATE_ARRAY(306,193,130,441,489,653,88,183,442,354,306,193)));
    But, when i run this query again:
    SELECT shape_id,SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(c.shape, 0.005) FROM shapes c;
    4     13349 [Element <1>] [Ring <1>][Edge <4>][Edge <1>]
    3     TRUE
    2     13348 [Element <1>] [Ring <1>]
    1     13367 [Element <1>] [Ring <1>]
    it doesn't say TRUE like it did for Circle ??
    Edited by: WhiteScars on Jan 4, 2010 12:45 AM

  • Another RAW Query

    Hi There.
    Another RAW query. I have PS CS4 Extended 11. I have tried to open RAW (NEF) pictures from my NIKON D3100. I get the error message 'Could not complete your request because it is not the right kind of document'. I have tried downloading the latest update. I currently have Camera RAW Version 5.7.0.213. I have also downloaded the DNG converter but I still get the same error. I am using Windows 7 on a laptop.
    Please help, otherwise no RAW Photography for me!
    Regards Mike.

    You need at least ACR 6.3 and you can not get there with CS4.  You either have to upgrade to CS6 or CC, or use the latest DNG converter. 

  • Pass the result of a SQL Query as table_name  for another SQL Query

    Hi All,
    How to pass the result of a SQL Query as parameter to another SQL Query
    Eg: I am doing the steps below.
    1) select distinct table_name as TAB1 from all_tab_cols where table_name like 'T_%' and column_name like '%XYZ'
    2) I want to pass the table_name from step 1 above as parameter to another query "select * from TAB1"
    Thanks

    Naveen B wrote:
    Hi All,
    How to pass the result of a SQL Query as parameter to another SQL Query
    Eg: I am doing the steps below.
    1) select distinct table_name as TAB1 from all_tab_cols where table_name like 'T_%' and column_name like '%XYZ'
    2) I want to pass the table_name from step 1 above as parameter to another query "select * from TAB1"
    ThanksYou should craete PL/SQL code with cursor which will accept a parameter and call that cursor inside the first one
    But if the first sql returns only one row, you can do it with simple sql code
    select * from (select distinct table_name as TAB1 from all_tab_cols where table_name like 'T_%' and column_name like '%XYZ')- - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Another strange RAID 0 SSD query with Asus P9X79 Pro - RAID array appearing in AHCI mode

    Hi all, I found this thread:
    http://forums.adobe.com/message/4874435
    very helpful, as it describes a similar situation to my case (same motherboard).  Here is my situation:
    historically, this was my setup (all on Asus P9X79 Pro motherboard):
    2 x 120Gb Intel 320 SSDs.  Operating system on one of them, Lightroom catalogue and photoshop scratch disk on the other.
    1 x 2TB WD SATA 3 HDD.  All images and other data etc
    1 x blu-ray DVD burner
    As I am now needing video editing, I have just bought Premiere Pro.  My OS SSD was also getting quite full.  So, I took the plunge and bought a Samsung 830series 256GB SSD.
    My plan was this:
    (a) make the Samsung the new OS drive, so lots of spare space for the SSD to play with (plugged into one of the 6 GB/s ports)
    (b) make a RAID 0 of the two Intel SSDs (i.e. 240GB volume) to act as Lightroom catalogue, PS scratch disk and Premiere Pro media cache, previews etc etc. This would be on 2 of the 3GB/s ports
    (c) keep the 2TB WD HDD for data. (plugged into the other 6 GB/s port)
    (d) plug the Blu-Ray drive into another of the 3 GB/s ports
    However, I was having a nightmare reinstalling the OS from scratch, so I ended up using Norton Ghost to port the OS across from the Intel SSD to the Samsung SSD.  I didn't have a lot of faith that it would work, but it did.... eventually.  I have checked SSD alignment and it is correct, and I benchmarked the Samsung and it is flying - it is running to reported values according to AS Benchmark.  So, I think that one is working fine - great stuff.
    However, this left me with the two Intel 120GB SSDs to try to make into a RAID 0.  Apart from the fact that my OS was already installed (and so no F6 driver install), I followed the instructions/suggestions of frogo369 in the forum thread I linked to above.  I changed the SATA mode to RAID in the UEFI and then defined the RAID in the CTRL+I  Intel RST option ROM utility.  I then rebooted the PC.... oh dear.....
    The PC started and got as far as the swirling Welcome to Windows sign (i.e. before log on appears), but then came the Blue Screen Of Death - and it gets into a never-ending reboot cycle.  :-(
    So, I figured that this was because I had changed my SATA mode in the UEFI from AHCI to RAID, but the OS was obviously from a time when I was only on AHCI.  Therefore, I changed the SATA mode back to AHCI in UEFI.  thankfully, the computer now boots successfully once more into Windows.
    BUT, HERE'S THE BIT I DON'T UNDERSTAND..........
    Weirdly (for me at least!), when I look at the list of disks in Disk Management, I could see the RAID.  It was "unallocated", so I formatted it.  It formatted fine.  I then opened the Intel SSD toolbox, and it can see the RAID 0 (it even defines it as such).  The only thing it won't let me do is really "interact" with it as it says I need Intel RST drivers of 11.0 or newer.  But I don't think they are available for the X79 chipset - so no TRIM I think??  I've just benchmarked the RAID and it is doing good numbers - >500Mb/s read and 400Mb/s write if I remember correctly.
    But anyway, my question really is two-fold:
    (a)Firstly - how can I see this RAID/how is it working, if my BIOS is set to AHCI mode not RAID??
    (b)am I likely to see a rapid detioration in the speed of the RAID, given that presumably TRIM won't be working on it?
    Sorry for such a long explanation - and no doubt I've missed out huge bits of info you need anyway!  But, any help, advice or direction would be very, very, gratefully received!
    Tim

    OK, an update to my post - I have now found Intel RST drivers for the X79 chipset - they are here, for the benefit of anyone in the future coming across this page:
    http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=21852&keyword=%22Intel+Rapi d+Storage+Technology%22&lang=eng
    These have enabled me communicate with the RAID 0 array via the Intel SSD Toolbox.  I have also confirmed that TRIM is activated on it. 
    However, this still hasn't answered my original question - i.e. how can I be using these two SSDs in RAID mode if RAID is not enabled in the UEFI?  Don't get me wrong - I'm delighted(!!) - but any expertise as to how this is happening would be much appreciated!
    Tim

  • Query Profile Option - Strange Query Result

    Hello,
    I'm having a strange situation working with the profile option.
    I have the responsibility MY_RESP associated to the profile option "MY_PROFILE" that is set to the value "Company Business Group Europe".
    Now If I check using the OA which is profile option value associated to the profile option MY_PROFILE I get the right value "Company Business Group Europe".
    If I run a query to check the same thing insted to get the value "Company Business Group Europe" I get a strange number.
    Now I'm having this problem with several profile option values and that's not good 'cause I absolutly need to copy some hundreds of responsibilties with profile options, from an environment to another one and if I cannot get this values using the query it seems enough crazy to get them one by one using the application.
    Do you have an idea about how to resolve this problem?
    The query I was running to see the profile option values set for each profile option of each responsibilty was the following:
    SELECT distinct
    d.responsibility_name user_or_responsibility_name,
    g.user_profile_option_name,
    b.profile_option_value,
    a.start_date_active,
    a.end_date_active,
    a.profile_option_name
    FROM
    applsys.fnd_profile_option_values b,
    applsys.fnd_profile_options a,
    applsys.fnd_responsibility_tl d,
    FND_PROFILE_OPTIONS_VL g
    WHERE
    b.profile_option_id = a.profile_option_id
    and g.profile_option_id = a.profile_option_id
    and b.level_id = 10003
    and b.level_value = d.responsibility_id
    and d.responsibility_name like '%_ES'
    ORDER BY
    d.responsibility_name;
    morover if I run the query
    select PROFILE_OPTION_VALUE
    from fnd_profile_option_values
    where PROFILE_OPTION_VALUE = 'Company Business Group Europe'
    the result is empty...
    Thank you for the tips.
    BR
    DV

    can any one please help me that i have a requirement based on the profile option name get all the available values which are present for each level i tried the so many queries but for each profile option name it getting the id not the value please provide me a query for this issueThere are many docs available, and if you search the forum you could simply find it -- profile option pointing to old sid
    Thanks,
    Hussein

  • Another problem:  query in oracle

    Hello guys,
    I have a problem in a SQL code in a program that uses a Oracle connection.
    The code:
    public class ConBol {
         public void getDataBol() {
              String sql = "SELECT * FROM DOCUMENT_FISC  WHERE NRDOC_FISC = ?";
              try {
                   Connection conn = new ConnectionFactory().getConnection();
                   PreparedStatement stmt = conn.prepareStatement(sql);
                   stmt.setInt(1, 3969);
                   ResultSet rs = stmt.executeQuery();
                   System.out.println("here -- ");
                   while (rs.next()) {
                        System.out.println("---while--- ");
                        System.out.println(rs.getString(1));
                   rs.close();
                   stmt.close();
                   try {
                        conn.close();
                   } catch (SQLException ex) {
                        Logger.getLogger(ConBol.class.getName()).log(Level.SEVERE, null, ex);
              } catch (SQLException ex) {
                   Logger.getLogger(ConBol.class.getName()).log(Level.SEVERE, null, ex);
    }When my SQL is only "Select * from myTable", the resultSet get all the data and the "System.out" inside the "while", works, showing me the data.
    When I put a "where" on my SQL, the resultSet returns nothing, and the column that I ask, has items inside and the query should return me at least one row.
    I really don't know what more can I do to solve this problem.
    The server is Oracle 11g.
    I try in Windows 7 and Windows XP SP3.
    I try to use 3 diferent oracle drivers: ojdbc6.jar , ojdbc14.jar and class12.jar.
    I try Eclipse and Netbeans, PreparedStatement and Statement, table name and column name in uppercase and lowercase, with alias, with other users from DB and no one solve the problem.
    The data base connection is ok. When I copy and paste the SQL on the SQLDeveloper, the query works fine and show me results.
    The program don't give any errors or exceptions, but doesn't work when I have a "where something".
    If I put "where 1=1" he works fine.
    Any help??

    Artur,
    I make the tests that you ask me to do and it works!!!
    The value returned from the "select distinct" work when I put him on the original query.
    I just can't understand how can this work if the another value that I pass to the query exists in the table too.
    How can one value that exists, don't return me nothing?
    At least, now I can be sure that the code is alright.
    Thank's a lot friend, for you and JSchell. I will make more tests to try understand how this can happen.
    Edit: I try to count the rows of that table. In PLSQL Developer, the row count was 5860. In the java code was 4730.
    Can be out of memory in the resultSet?
    Edited by: Herick on Dec 29, 2009 2:34 AM
    Edit2: Forget what I said. I use the "Select count" and the resultSet came with just one result, so can't be memory problem.
    Edited by: Herick on Dec 29, 2009 2:39 AM

  • Strange query / explain plan

    (I posted this in the Oracle Text forum, but I think it's as appropriate here.)
    Consider the following queries:
    :the_filter := 'FILE';
    (1)
    SELECT COUNT(*)
    FROM FOO
    WHERE CONTAINS(search_col,:the_filter) > 0;
    (2)
    SELECT COUNT(*)
    FROM FOO
    WHERE 'FILE' IS NULL OR CONTAINS(search_col,:the_filter) > 0;
    (3)
    SELECT COUNT(*)
    FROM FOO
    WHERE :the_filter IS NULL OR CONTAINS(search_col,:the_filter) > 0;
    (1) and (2) use the text index and run normally, but (3) does a full table scan, but I don't understand why.
    The reason behind my using a query of the form (3) is to say 'keep the record if the filter is null or the record contains the filter'. I'm using the filter as a switch, and (3) is actually a simplified form of a complex query with several tables and filters. How can I do this without the query using a full table scan?
    Below is the script and a record of the full session:
    SET ECHO ON;
    SET TIMING ON;
    DROP TABLE FOO;
    CREATE TABLE FOO (search_col VARCHAR2(100));
    -- Loads of dummy data
    INSERT INTO FOO (search_col) SELECT OBJECT_NAME || ' ' || OBJECT_TYPE
    FROM ALL_OBJECTS WHERE ROWNUM <= 20000;
    COMMIT;
    CREATE INDEX I1 ON FOO(search_col) INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS(' section group ctxsys.html_section_group');
    variable the_filter varchar2(100);
    begin
    :the_filter := 'FILE';
    end;
    SET AUTOTRACE ON EXPLAIN;
    SELECT COUNT(*)
    FROM FOO
    WHERE CONTAINS(search_col,:the_filter) > 0;
    SELECT COUNT(*)
    FROM FOO
    WHERE 'FILE' IS NULL OR CONTAINS(search_col,:the_filter) > 0;
    SELECT COUNT(*)
    FROM FOO
    WHERE :the_filter IS NULL OR CONTAINS(search_col,:the_filter) > 0;
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Nov 21 11:21:22 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.6.0 - Production
    SQL> SET TIMING ON;
    SQL> DROP TABLE FOO;
    Table dropped.
    Elapsed: 00:00:00.73
    SQL> CREATE TABLE FOO (search_col VARCHAR2(100));
    Table created.
    Elapsed: 00:00:00.03
    SQL> -- Loads of dummy data
    SQL> INSERT INTO FOO (search_col) SELECT OBJECT_NAME || ' ' || OBJECT_TYPE
    2 FROM ALL_OBJECTS WHERE ROWNUM <= 20000;
    20000 rows created.
    Elapsed: 00:00:01.92
    SQL> COMMIT;
    Commit complete.
    Elapsed: 00:00:00.01
    SQL> CREATE INDEX I1 ON FOO(search_col) INDEXTYPE IS CTXSYS.CONTEXT
    2 PARAMETERS(' section group ctxsys.html_section_group');
    Index created.
    Elapsed: 00:00:10.76
    SQL> variable the_filter varchar2(100);
    SQL> begin
    2 :the_filter := 'FILE';
    3 end;
    4 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> SET AUTOTRACE ON EXPLAIN;
    SQL> SELECT COUNT(*)
    2 FROM FOO
    3 WHERE CONTAINS(search_col,:the_filter) > 0;
    COUNT(*)
    29
    Elapsed: 00:00:00.07
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=1 Bytes=59)
    1 0 SORT (AGGREGATE)
    2 1 DOMAIN INDEX OF 'I1' (Cost=0 Card=1 Bytes=59)
    SQL> SELECT COUNT(*)
    2 FROM FOO
    3 WHERE 'FILE' IS NULL OR CONTAINS(search_col,:the_filter) > 0;
    COUNT(*)
    29
    Elapsed: 00:00:00.08
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=2 Card=1 Bytes=59)
    1 0 SORT (AGGREGATE)
    2 1 DOMAIN INDEX OF 'I1' (Cost=0 Card=1 Bytes=59)
    SQL> SELECT COUNT(*)
    2 FROM FOO
    3 WHERE :the_filter IS NULL OR CONTAINS(search_col,:the_filter) > 0;
    COUNT(*)
    29
    Elapsed: 00:00:04.06
    Execution Plan
    0 SELECT STATEMENT Optimizer=CHOOSE (Cost=34482 Card=1 Bytes=5
    9)
    1 0 SORT (AGGREGATE)
    2 1 TABLE ACCESS (FULL) OF 'FOO' (Cost=34482 Card=453 Bytes=
    26727)

    Nothing is really strange when you are attempting to integrate with legacy systems! =)
    If no numerical processing is done why should numerical values be stored as numbers?

  • Oracle taking a strange query execution path

    I have a query which is admittedly a bit unconventional but Oracle is really doing something strange with it...
    SELECT   GROUP_CODE, STATUS, COL3, COL4, ETC...
    FROM MAIN_TABLE A
    WHERE A.STATUS = 'COMPLETE' -- ONLY GET COMPLETE RECORDS...
        -- AND ONLY FOR THOSE WHERE THERE ARE NO INCOMPLETE RECORDS IN THE SAME GROUP
        AND (SELECT COUNT(*) FROM MAIN_TABLE B WHERE B.GROUP_CODE = A.GROUP_CODE AND B.STATUS != 'COMPLETE') = 0
    ORDER BY GROUP_CODE  
    [\CODE]
    This query is done on a table of ~100k records, and the result should only return about 100 or so records.
    The only index in the table is on GROUP_CODE, and statistics are up-to-date.
    The strange part is that the query takes over an hour to complete, UNLESS I take out the ORDER BY, then it takes only a few seconds!!!  The difference is that with the ORDER BY, it is using the GROUP_CODE index (even with a */*+ NO_INDEX(MAIN_TABLE) */* hint in the query).
    How can I either reorganize this query or prevent Oracle from taking the "incorrect" path?
    Edited by: xaeryan on May 20, 2011 3:01 PM
    Edited by: xaeryan on May 20, 2011 3:02 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    try something as below..
    select *
    from
         select GROUP_CODE, STATUS, COL3, COL4, ETC...,
         max(case when STATUS != 'COMPLETE' then 1 ELSE 0 END) over( partition by  GROUP_CODE) as mx
         from
         MAIN_TABLE
    )X
    where mx= 0 HTH...

  • Strange query behavior when displayed in browser.

    Hi gurus,
    when I open a query in browser on one of the computers, I get no detailed cells, just the overall result.
    No matter, if I open the query in Portal, or in BEx Web Analyzer.
    When I use BEx Analyzer, everything seems to be fine.
    When I open the same query, on the same user, but on another computer, queries are displayed properly.
    Do you know what might cause the problem? Maybe some browser settings?
    Regards,
    Dorota

    Thanks, we recently installed a new GUI version on this computer, so probably you're right

  • Can I pass a SAP query to another SAP query???

    Hi Friends
    In SAP Queries we can edit the existing query and we can save it as a new query. In the same way is there anyway to pass a query to another query? As per my knowledge, I don't think it is possible, I want give confirmation to my manager, before telling this to him, I want to reconfirm it from you experts.
    Please guide me.
    Regards
    Praveen

    No Rob,
    He is talking about SAP Queries only, but he is not aware of SAP, he is from Dot Net. Thanks for your reply.
    Regards
    Praveen

  • APEX Views - Strange query results

    One of my customers is running 3.1.2 version of APEX on a 10g database. I had two problems with it today:
    1. I implemented IBM Webseal SSO there and suddenly none of the authorisation schemes were running. Why, I don't know. I had to delete and recreate them.
    2. To be sure I replaced all the old authorization schemes I had to query the apex views. Searching on the non public pages with authorization I noticed some strange results. I run this query
    SELECT page_id
      FROM apex_application_pages
    WHERE page_requires_authentication = 'No' AND application_id = 200and in the result set I received a lot of pages where "Page requires Authentication" was set. I checked and indeed the results were wrong. After that I picked one of the pages from the result set and I set it to "Page is public". After running the same query the page id was not in the result set anymore.
    Has anyone seen this before?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

    missing records after query when using a radiogroup are normally caused by an unappropiate setting of the property "Mapping of other values" at the record group. Check your setting for that value.

  • Another Strange Process mDNSResponderHEL

    Here's a tough one - I noticed this process running only once for about a half hour last week - never seen it before and never seen it again since. It was a process I noticed in the Activity Monitor called:
    mDNSResponderHEL
    I've hunted high and low for information on this. Does anyone know what it is? My son got on my iMac (again) and I'm noticing all sorts of strange things after he downloaded some software. As I said in another post, it's time to password protect my iMac - I've just done that now. No one else knows the password now so I won't have to worry about this kind of thing anymore - obviously, I have the newest and fastest iMac in the family and get "bugged" all the time to use it
    I'd really like to know what this process is - I see mDNSResponder running all the time but never before have I seen mDNSResponderHEL.
    Thanks,
    Gerard

    I may have written this down wrong - sorry about that. On one sticky note, I wrote down:
    mDNSResponderHEL
    And on another, I wrote down:
    mDNSResponderECH
    I don't know which one it was now! At any rate, is anyone familiar with either of these?
    Thanks and sorry for the mix-up, just too much on the go these days...
    Gerard

Maybe you are looking for

  • Crystal Reports on Windows Web Server 2008 R2

    Hello! I use Crystal Reports for Visual Studio 2010. I have developed a web project/app in .NET 4. What exactly should install on the server side (Windows 2008 R2 WEB) for the reports to work? At the moment I'm getting the following error: "Could not

  • Launchd doesn't launch script on time

    I have a launchd configuration file that uses StartCalendarInterval to start an script at a given time (1 minute after midnight). Everything seems to work on my Mac Pro workstation, but on a Mac Mini web server (no keyboard, mouse, or monitor; firewa

  • HELP I deleted the mail and address book application, Is there a free DL???

    This used to be my mom's macbook but she gave it to me, at first her old mail account kept popping up in random occasions and couldn't figure out how to change the mail account to mine so I deleted it altogether permanently. Now it would be more conv

  • Airport Base Cutting in and Out

    My Airport base station has started cutting in and out and restarting it only sometimes works. Once returning to detectable signal, it may work for seconds, minutes or hours. For four years, we have had a flat-screen iMac, an eMac and a network print

  • Preview missing -  no menubar clock - System Prefs won't open....help!

    Wow. Preview is missing (it shows up in the Application window as a zero K app, then when I click on it, it vanishes), all the Preview docs I had on my desktop are neutral icons ( just a white rectangle), and also my menubar clock is gone. System Pre