Find Unmatched Query Help

Hello
We'd like to make a "find unmatched query" (similar to Microsoft Access); so, we created an outer join via Discoverer Administrator, and in Discoverer Desktop we tried to include a condition were only the rows with null value for a field in the outer joined table were shown.
The problem is that Discoverer also uses "(+)" for the null condition:
outerjoined_field(+) is null
This is why we are not getting the expected result.
Even if i import the sql withouth the (+) for the null condition, Discoverer adds the (+)
Is there a way to make a "find unmatched query"? (get all the information in table A where A.ID doesn't exist in B.ID)
Thanks in advance
More details:
1. Version: 9.0.2
2. Query generated by Discoverer:
SELECT COUNT(RTR_LKP_CLIENTE.ID_CLIENTE), COUNT(RTR_MAT_MAESTRO_POL_2.DES_POLIZA)
FROM RTR_ADMIN.RTR_LKP_CLIENTE RTR_LKP_CLIENTE, RTR_ADMIN.RTR_MAT_MAESTRO_POL_2 RTR_MAT_MAESTRO_POL_2
WHERE ( ( RTR_MAT_MAESTRO_POL_2.DES_POLIZA = RTR_LKP_CLIENTE.DES_POLIZA(+) ) ) AND ( RTR_LKP_CLIENTE.ID_CLIENTE(+) IS NULL ) AND ( RTR_MAT_MAESTRO_POL_2.DES_PREF_DIVISION = 'C1' )
3. Desired query:
SELECT COUNT(RTR_LKP_CLIENTE.ID_CLIENTE), COUNT(RTR_MAT_MAESTRO_POL_2.DES_POLIZA)
FROM RTR_ADMIN.RTR_LKP_CLIENTE RTR_LKP_CLIENTE, RTR_ADMIN.RTR_MAT_MAESTRO_POL_2 RTR_MAT_MAESTRO_POL_2
WHERE ( ( RTR_MAT_MAESTRO_POL_2.DES_POLIZA = RTR_LKP_CLIENTE.DES_POLIZA(+) ) ) AND ( RTR_LKP_CLIENTE.ID_CLIENTE IS NULL ) AND ( RTR_MAT_MAESTRO_POL_2.DES_PREF_DIVISION = 'C1' )

Ok, thank you very much
I didn't know that Discoverer used (+) only in some cases; using "field is null" is generated as "field (+) is null", but using OR is a good alternative, also using "field in (null)" worked fine, although i find it a little tricky.
Thanks again, bye

Similar Messages

  • How to find database query

    Hi all,
    how to find physical query from report here m checking like Administrator->manage session--> report-->view log
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- SQL Request:
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- General Query Info:
    Repository: Star, Subject Area: AAA, Presentation: AAA
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- Cache Hit on query:
    Matching Query:     Created by:     Administrator
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- Query Status: Successful Completion
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- Physical Query Summary Stats: Number of physical queries 1, Cumulative time 0, DB-connect time 0 (seconds)
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- Rows returned to Client 6
    +++Administrator:3220000:3220011:----2011/01/03 02:51:43
    -------------------- Logical Query Summary Stats: Elapsed time 0, Response time 0, Compilation time 0 (seconds)
    but here m not able to find database query..how to find that query plz help
    Edited by: Sonal on Jan 3, 2011 5:29 AM
    Edited by: Sonal on Jan 3, 2011 5:30 AM
    Edited by: Sonal on Jan 3, 2011 5:30 AM

    Hi,
    as Daan said, set the variable in Advanced tab but not on loglevel..
    because, our problem is to bypass the bi-server cache.
    Do this:
    1. Go to Advanced tab.
    2. In Prefix field(scroll down to see this field) , enter this:
    SET DISABLE_CACHE_HIT = 1;
    Note: Make sure that you're ended up above statement with semicolon and do not click on Set SQL option...
    3. Save report, then run it..
    4. After you see the query, i recommend you to take take out that prefix tag then save it again..

  • Finding std query for Time booking report in BW

    Hello,
      Time booking for service engineers are done in CRM Service. Need to furnish report on this time booking in BI portal.Can anyone help me in finding std. query built in BI on time booking.
    Regards
    Devika.S

    Hi gabbeta,
    not sure, but I try:
    1) you want in single columns values <4 or <8...:
    You can use Formula with boolean operator '<'. It gives you as feed-back 1 or 0 if corresponding to the operator.
    2) you want single columns for single values of Priority:
    You create a set of Restricted Key Figures with the corresponding value of Priority.
    3) you can combine previous settings if you need both situation: Restricted Key Figure and values greater or less then 4, 8, 12.
    Ciao.
    Riccardo.

  • Unable to find Cube / Query in Catalog (Designer)

    Hello,
    Our current environment consists of BW Queries which are access by BO Universes. When creating a Universe we were able to see all queries but since we did some changes to the MP and cubes we don't see the queries anymore from BO Side.
    Also the current reports fail with an error "Unable to find Cube <QueryName> in catalog".
    The queries used in the universes are still visible and accessible in BEx Analyzer.
    What I tried so far (with a super user) is:
    1. Generate query again -> no change
    2. Save the query again -> no change
    3. Remove the flag u201CAllow external Access to this queryu201D, save query and flag the option again -> no change
    4. Activate the MultiProvider again -> no change
    5. Copy the query to another query u2013
         -> New query is accessible. This means the MP and cubes are not the reason. It seems like the query is gone in an inactive modeu2026
    6. Used BAPI  BAPI_MDPROVIDER_GET_CUBES to get the list of accessible queries.
         -> I see the same list as in BO. Most queries are missing. The ones that are in the list disappear whenever we try to access these queries from BO.
    Did anyone encounter the same issue and was able to solve it?
    Environment: SAP BI 7.1 EHP1 SP5, BO XI 3.1 SP2(1.7).
    Thanks in advance.
    Manu

    Hi Manu,
    your are talking about universe designer here - right?
    We have the same behaviour currently in Crystal 2008 designer and universe designer.
    In both we can see the same but not the complete list of queries.
    We made sure the "allow external access" option is set in BEX.
    We resolved both issues with same root cause :  adjust Query properties -> Req. status ->   ...
    Pls refer to thread Unable to find BW Query while creating connection with universe designer as well - thanks Ingo !
    - logon to the SAP system
    - start transaction RSRT
    - enter the technical name of the BW query in the syntax CUBE/QUERY
    - click Properties
    - set the second item called Req.Status.
    - set that one to 0
    Let us know if this helped !
    Holger
    Edited by: Holger Brasch on Mar 26, 2010 11:58 PM

  • How does u find whether query touches aggregates or not?

    Hi gurus
         How does u find whether query touches aggregates or not?
    Thanks in advance
    Raj

    Hi Rajaiah.
    You can test this from TA RSRT -> Execute and debug -> Display aggregate found.
    Hope it helps.
    BR
    Stefan

  • How to find which query need to tuned

    Hi ,
    How can i find , which query need to tuned . Is there any mechanism behind it?

    The mechanisms behind it are depending on your database version.
    For example:
    Oracle 9i has STATSPACK that helps you to identify possible problem queries.
    Oracle 10g has AWR - Automatic Workload Repository
    Oracle 11g has SPA - Database Replay SQL Performance Analyzer
    but there are many more tools/mechanisms...trace/tkprof for example.
    Go to http://tahiti.oracle.com and do a search on 'performance tuning guide', and pick the one that matches your (sofar unknown) database version, read a bit every now and then and see what tools are at your disposal and fit your requirement and situation.
    Besides the links that Blu already posted, searches on http://asktom.oracle.com also give lots of pointers and explanations regarding the (neverending) tuning process (at least: helped me tremendously in understanding the tuning process, the do's and dont's).
    Make sure you don't get CTD (Compulsive Tuning Disorder) from all this... ;)

  • How to find the query that generates print preview?

    Hello,
    How can I find the query that gets executed to generate  print preview? On SAP Business One client if I open a Sales Quotation and click on print preview a report is generated. What queries are run in the background to generate this report?
    Thanks for your help.
    Regards,
    Sheetal

    Hi Sheetal,
    In such cases i am using a Profiler which is connected to my company's database. If you are using SQL-Server, the start the "Profiler", connect it to your database server and start the trace. When the trace is running, execute the SBO action. After you executed this action you will see in the profiler the excuted SQL-Statements.
    Regards,
    Christian

  • How to find which query ORA-1652: unable to extend temp segment by 128 in

    How can i find which query caused the below error,the query is not running currently
    ORACLE ERRORS IN ALERTS LOG dnb2stg3 - lnx300 on Thu Jun 17 12:10:01 EDT 2010
    1 ORA-1652: unable to extend temp segment by 128 in tablespace TEMP_SCHED
    SQL> select inst_id, tablespace_name, total_blocks, used_blocks, free_blocks from gv$sort_segment;
    INST_ID TABLESPACE_NAME TOTAL_BLOCKS USED_BLOCKS FREE_BLOCKS
    1 TEMP 638336 0 638336
    4 TEMP 565760 0 565760
    4 TEMP_SCHED 16776704 0 16776704
    3 TEMP 484864 0 484864
    3 TEMP_SCHED 0 0 0
    2 TEMP 455808 0 455808
    6 rows selected.
    SQL> SQL> SELECT S.sid || ',' || S.serial# sid_serial, S.username,
    2 T.blocks * TBS.block_size / 1024 / 1024 mb_used, T.tablespace,
    3 T.sqladdr address, Q.hash_value, Q.sql_text
    FROM v$sort_usage T, gv$session S, gv$sqlarea Q, dba_tablespaces TBS
    4 5 WHERE T.session_addr = S.saddr
    6 AND T.sqladdr = Q.address (+)
    7 AND T.tablespace = TBS.tablespace_name
    8 ORDER BY S.sid;
    no rows selected

    Hello,
    You may try to catch the SQL with a Servererror Trigger.
    This link will give you an interesting example:
    http://oratips-ddf.blogspot.com/2008/09/to-err-is-human.html
    Hope this help.
    Best regards,
    Jean-Valentin

  • How to Find the Query used by the Workbook ?

    Hi ,
    I am currently involved in trouble shooting a work book where some master data values are not being displayed.
    How do i find, which Query the work books is using ? or Let me know as to how should i proceed in solving the same .

    Hi,
    If you have access to BW Admin workbench... then choose the option metadatarepository(left side) of the BW admin workbench, search for the workbook(Technical name) and click on the "Network display dataflow" link.
    If you want to know the relationship between workbook and the queries:
    Check table RSRWORKBOOK which contains the WORKBOOKID and the GENUNIID.
    Table RSRREPDIR contains GENUNIID, query name RNAME, AUTHOR, LASTUSER, INFOCUBE
    Table RSRINDEXT contains the WORKBOOKID and workbook TITLE
    You should join the tables by GENUNIID and select in RSRREPDIR the rows that have COMPTYPE='REP' for queries and object version active/modified.
    With this information an infoset query can be created to list all workbook-query-user relationship (and even the query-infocube relationship).
    Hope this helps u...
    Regards,
    KK.

  • Query Help-2

    Query Help:
    http://forum.java.sun.com/thread.jsp?forum=45&thread=471180&tstart=15&trange=15
    It seems I have confused enough people with my improper presentation of query. Sorry guys. I will restate my question with different table names.
    The above was my previous posting, which was not clear..so Iam restating my problem as follows....
    I have the following tables
    Customer(custID, Name, Address)
    Order(custID, OrderID, orderDate)
    CreditCard(custID, creditCard#, creditCardType)
    Now if I have 3 records in Order with custID 100 and 2 records in CreditCard as
    Order:
    100,A001,11/22/03
    100,A002,11/24/03
    100,A003,12/02/03
    CreditCard:
    100,42323232..., VISA
    100,5234234...., MASTER
    Now how can I get
    custID, Name, Address, OrderID, orderDate, creditCard#, creditCarType
    data in minimum no. of records....
    I think I have made my query clear..
    now please help me guys...
    thanks so much for your help.

    You are right.
    But frankly the actual tables on my database are not customer,orders and creditcards..but I just tried to reproduce the problem with these tables, please ignore that user needs a refund etc situtaion. If the tables were actually order,creditcards etc..it would have been a problem to be considered.
    Can you please help me with the query
    if I have m rows in Order and n rows in CreditCard. I will get m*n records, I looking for max(m,n).
    With the following fields in my query result,
    custID, Name, Address, OrderID, orderDate, creditCard#, creditCarType
    from Customer, Order, CreditCard tables
    Thanks so much for your htlp

  • I upgraded my Iphone, but now I can't connect it to itunes because it is not upgraded. However, when I want to upgraded, it says that my computer (imac)  needs to be upgraded to another version. I can't find anything to help me out.

    I upgraded my Iphone to IOS6, but now I can't connect it to itunes (10.6.3) because it is not upgraded. However, when I want to upgraded, it says that my computer (imac Mac OS 10.5.8)  needs to be upgraded to another version. I can't find anything to help me out.

    You need iTunes 10.7 or later.
    To get this, you need Mac OS 10.6.8 or later.
    You can get 10.6 Snow Leopard here -> http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard

  • How to find a query name from report name

    I have a report in my system with the name AQICMM==========P2============ . I believe this was created from a query. How to find the query corresponding to this report ? I need to change the logic for certain columns of the report. How to know if this was created from SQVI or SQ01 or any other transaction.
    THanks.

    Found it..Query name is P2. It was in a different query area..Standard area and not custom area where I was initially looking at.
    Edited by: Shareen Hegde on Aug 22, 2008 5:14 PM

  • How do I get Acrobat Reader to work with Firefox again? I'ver tried everything that I can find in the Help area.

    A while back now I lost use of Acrobat Reader's loading feature while in Firefox. I have tried all of the suggestions that I can find in the Help Menu, on blogs, etcetera, and nothing has worked to re-enable it. The Acrobat Reader seems to work fine from all other browsers, and from the Start Menu. I just can't get it to work with Mozilla.

    I solved this problem by looking at the plug-ins I had in 5.0 and found that I had two versions of Adobe - a V8 and a V10 enabled. I disabled the V8 and it all works fine now.

  • Where can I find detailed, systematic HELP for advanced topics relating to Thunderbird?

    In moving from XP to Windows 7, I opted for Thunderbird as email client in order to bypass Microsoft's hyper-intrusive Windows Live Mail (I used Outlook Express for years).
    I have a very complicated email structure, and it's taken me weeks (seriously) to learn how to replicate it in TBird. Now I'm trying to customize TBird further, but none of the TBird articles/forum Q&A's/Google searches address my questions.
    There is no live tech support for TBird, and I'm just about ready to leave it for good. However -- one last effort: where can I find detailed, systematic HELP for advanced topics relating to Thunderbird?
    Thanks.

    I am no expert, but I don't know of any authoritative reference as to what elements of HTML and CSS are supported in Thunderbird. However, as I believe you appreciate, it's more than just what Thunderbird supports, but one must also think about what is likely to work in other email clients. Keep it simple. Avoid ancient deprecated tags that other email clients may not support, and for similar reasons, avoid cutting edge technology. Remember that recipients using tablets or smartphones won't appreciate large fancy email documents.
    The only thing ''guaranteed'' to work in email is plain text. ;-)
    If you haven't already discovered it, the Stationery add-on is designed specifically to support OE stationery in Thunderbird. Your existing stationery may "just work" in this add-on. It makes switching between various stationery templates much easier, but I'm not confident that it will affect interpretation of your CSS or HTML coding.
    Your code is at least clean and minimal. Most times my involvement with troublesome templates and signatures centres on the horrible bloat and mso custom code generated by Word or Outlook.
    Having said that, you and I are mortal enemies, as I don't have much patience with what you aspire to achieve. I specifically don't like background images, nor being obliged to suffer other folks' bizarre choice of typefaces and colours (but your simple 12pt black Tahoma is quite inoffensive. ;-) ) I'm of an age where my tolerance and eyesight are easily offended.
    Nonetheless, I'm intrigued by how to parse the tag for the background image, as it doesn't look like a legitimate pathname to a graphics file. Does the background image actually appear as required?

  • Since updating to 3.6.1 I don't get an empty browser window in my tool bar whe. it opens --- just a list of search engines. I can't find anything in "Help" or the FAQ's that seem to address this. My only choice seems to go back to Safari.

    Since updating to 3.6.1 I don’t get an empty browser window in my tool bar when it opens --- just a list of search engines. I can’t find anything in “Help” or the FAQ’s that seem to address this.
    My only choice seems to go back to Safari.

    I am not sure what your problem is, can you give more details.
    One possibility is you may be in full screen mode, for details on fixing that see the [[menu bar is missing]] article.
    If you are missing various toolbar items, see the [[back and forward or other toolbar items are missing]] article.
    If your problem is something else please give more details.

Maybe you are looking for