Query Builder on VS2010 change my request

Hello,
I use VS2010 with ODT 11.2.0.1.1 and I have strange behaviour with the "Query Builder"...
When I enter this request:
SELECT ARTICLE_PCH.AP_CODE ....ARTICLE_SAP.AS_USAGE_UNIQUE
FROM ARTICLE_SAP, ARTICLE_PCH
WHERE ARTICLE_SAP.AS_NUMERO = ARTICLE_PCH.AS_NUMERO (+) AND (ARTICLE_SAP.AS_CIRCUIT = 'SAD') AND (ARTICLE_SAP.AS_SUPRESSION IS NULL) AND
(ARTICLE_SAP.AS_FAMILLE <> 'ZEPS') AND (ARTICLE_PCH.AP_CODE IS NULL)
ORDER BY ARTICLE_SAP.AS_LIB_40
The query builder add a (+) before the "IS NULL"
Like This
SELECT ARTICLE_PCH.AP_CODE ....ARTICLE_SAP.AS_USAGE_UNIQUE
FROM ARTICLE_SAP, ARTICLE_PCH
WHERE ARTICLE_SAP.AS_NUMERO = ARTICLE_PCH.AS_NUMERO (+) AND (ARTICLE_SAP.AS_CIRCUIT = 'SAD') AND (ARTICLE_SAP.AS_SUPRESSION IS NULL) AND
(ARTICLE_SAP.AS_FAMILLE <> 'ZEPS') AND (ARTICLE_PCH.AP_CODE (+) IS NULL)
ORDER BY ARTICLE_SAP.AS_LIB_40
And then the request return a wrong result. When I test with sqlplus the request without the (+) return the good result. But I can't enter the request because the query builder automaticaly modify my request...
Did someone have the same problem with this beta of ODT ?
With the previous version of ODT I don't have the problem.
Thanks in advance
Jeff

Hi Jeff,
Please post this on the ODT discussion forum:
Oracle Developer Tools for Visual Studio
Regards,
-Naveen

Similar Messages

  • Query Builder dynamicly change the request

    Hello,
    I use VS2010 with ODT 11.2.0.1.1 and I have strange behaviour with the "Query Builder"...
    When I enter this request:
    SELECT ARTICLE_PCH.AP_CODE ....ARTICLE_SAP.AS_USAGE_UNIQUE
    FROM ARTICLE_SAP, ARTICLE_PCH
    WHERE ARTICLE_SAP.AS_NUMERO = ARTICLE_PCH.AS_NUMERO ( + ) AND (ARTICLE_SAP.AS_CIRCUIT = 'SAD') AND (ARTICLE_SAP.AS_SUPRESSION IS NULL) AND
    (ARTICLE_SAP.AS_FAMILLE 'ZEPS') AND (ARTICLE_PCH.AP_CODE IS NULL)
    ORDER BY ARTICLE_SAP.AS_LIB_40
    The query builder add a ( + ) before the "IS NULL"
    Like This
    SELECT ARTICLE_PCH.AP_CODE ....ARTICLE_SAP.AS_USAGE_UNIQUE
    FROM ARTICLE_SAP, ARTICLE_PCH
    WHERE ARTICLE_SAP.AS_NUMERO = ARTICLE_PCH.AS_NUMERO ( + ) AND (ARTICLE_SAP.AS_CIRCUIT = 'SAD') AND (ARTICLE_SAP.AS_SUPRESSION IS NULL) AND
    (ARTICLE_SAP.AS_FAMILLE 'ZEPS') AND (ARTICLE_PCH.AP_CODE ( + ) IS NULL)
    ORDER BY ARTICLE_SAP.AS_LIB_40
    And then the request return a wrong result. When I test with sqlplus the request without the ( + ) return the good result. But I can't enter the request because the query builder automaticaly modify my request...
    Did someone have the same problem with this beta of ODT ?
    With the previous version of ODT I don't have the problem.
    Thanks in advance
    Jeff

    Hi Jeff,
    Our engineers are looking into this. Right now, it appears this change is being done by Query Builder itself (eg there may be nothing we can do to stop it). This did not happen in VS2008.
    However if you change your original query to the equivalent using the "LEFT OUTER JOIN" keywords, you can avoid this problem entirely:
    For example:
    From:
    SELECT EMP.ENAME, EMP.JOB, EMP.MGR, DEPT.DNAME, DEPT.LOC
    FROM EMP, DEPT
    WHERE EMP.DEPTNO = DEPT.DEPTNO (+) AND (DEPT.DNAME IS NULL)
    ORDER BY EMP.ENAME
    To:
    SELECT EMP.ENAME, EMP.JOB, EMP.MGR, DEPT.DNAME, DEPT.LOC
    FROM EMP LEFT OUTER JOIN
    DEPT ON EMP.DEPTNO = DEPT.DEPTNO
    WHERE (DEPT.DNAME IS NULL)
    ORDER BY EMP.ENAME
    Can you try this with your query? We will follow up with MS to find out if there is anything we can do to stop Querybuilder from changing the query in VS2010.
    Thanks,
    Christian

  • How to change the font in query builder window in Reports 6i?

    Hi
    I am facing the old problem again and again, which is I can not find any way to change the font in query builder window in Reports 6i. The current font is so bad for alignment and ordering each part of SELECT statement. Is there any way to change this to COURIER NEW for example?

    No, but I suggest using a different editor which does allow a different text option and just pasting it in.

  • Query Builder results seem to max out at 500 lines.  How to change?

    Hi all,
    Some of out Application Express users are using the Query Builder tool for ad-hoc reporting. The idea is to run the SQL to extract the data, then download to MS Excel. The Query Builder results seem to max out at 500 lines. I want to increase that value. I searched all Application Express forums for 'query builder output max 500' and then 'query builder output' and did not find the answer.
    How do I change the 500 line limit in Query Builder results?
    Thanks!
    Application Express 3.1.2.00.02
    Oracle 10g
    Standard PDF printing (not BI Publisher)

    Bryan,
    Here is a link to an HTML-DB studio application, that is a QBE "replacement" for the query tool in APEX development..
    http://htmldb.oracle.com/pls/otn/f?p=18326:7:1387557504245687::::P7_ID:1222
    It is for an older version of APEX, but you should be able to make it work for your needs..
    Thank you,
    Tony Miller
    Webster, TX

  • Query Changes Transport Request

    I created TP request for query keyfigure properties decimal poing change.I imported TP request to GRA. I have not seen changes in GRA.
    Query in GRA is Display mode. when i try to open the query i am getting message authorisation check is required.
    anybody idea how to reflect the changes in GRA query keyfigure decimal point changes.
    please let me know.

    Hi,
    You have to make sure that all the elements of the queries are captured in the transport request. For that, in transport connection, while capturing the query, filter on "ELEM" and include them in transport connection.
    As for authorization, you will not have it except in development. Thatu2019s the reason why you can not change the query in GRA directly. You always have to transport the changes.
    Regards,
    Yogesh

  • Enhancement Request - Query Builder and Synonyms

    My APEX instance is not the same one as some of the data we need to access. Is it possible to allow the query builder to see Synonyms as well as tables and views?

    I'd echo that, though it'd be even better if it only showed synonyms for tables and views...but then you have to answer the question of how far down the rabbit hole you want to go (what about synonyms of synonyms of tables, etc.?)
    For now, at least, you can always create a view, rather than a synonym.
    -David

  • A way to convert selection from query builder in DML language

    I search a way to convert selection from query builder in DML language.
    regards

    We will make a sample from this request and post it on OTN. I have pasted all the JSP code so you should be able to use it directly. Just change the BISession details and the presentation references.
    <%@ taglib uri="http://xmlns.oracle.com/bibeans" prefix="orabi" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="java.util.Vector" %>
    <%@ page import="oracle.dss.thin.beans.crosstab.ThinCrosstab" %>
    <%@ page import="oracle.dss.util.DataAccess" %>
    <%@ page import="oracle.dss.selection.Selection" %>
    <%@ page import="oracle.dss.thin.beans.graph.ThinGraph" %>
    <%@ page import="oracle.dss.dataSource.client.QueryClient"%>
    <%-- Start synchronization of the BI tags --%>
    <% synchronized(session){ %>
    <orabi:BIThinSession id="BIThinSession1" configuration="/Project1BIConfig1.xml" >
    <orabi:Presentation id="untitled2_Presentation1" location="Presentation1" />
    <orabi:Presentation id="untitled2_Presentation2" location="Presentation2" />
    </orabi:BIThinSession>
    <%
    String CROSSTAB_ID = "untitled2_Presentation2";
    String GRAPH_ID = "untitled2_Presentation1";
    String MYProducts = "Nothing";
    String prodID = "MDM!D_CS_OLAP.SHAWPRODUCTS";
    //Find the crosstab object on the page
    Object crosstabObject = pageContext.findAttribute(CROSSTAB_ID);
    ThinCrosstab thinCrosstab = (ThinCrosstab)crosstabObject;
    //Get the various query components from the Crosstab
    QueryClient myQCXtab = (QueryClient)thinCrosstab.getDataSource();
    Selection mySelXtab = myQCXtab.findSelection(prodID);
    DataAccess daXtab = myQCXtab.createQueryAccess().getDataAccess(mySelXtab);
    // This is a one-d data access, only has the column edge
    int colExtentXtab = daXtab.getEdgeExtent(oracle.dss.util.DataDirector.COLUMN_EDGE);
    for (int i=0; i<colExtentXtab; i++)
    String memberLabel = (String)daXtab.getMemberMetadata(oracle.dss.util.DataDirector.COLUMN_EDGE, 0, i, oracle.dss.util.MetadataMap.METADATA_LONGLABEL);
    String memberValue = (String)daXtab.getMemberMetadata(oracle.dss.util.DataDirector.COLUMN_EDGE, 0, i, oracle.dss.util.MetadataMap.METADATA_VALUE);
    System.out.println(memberLabel + " " + memberValue);
    // As above except for graphs.
    Object graphObject = pageContext.findAttribute(GRAPH_ID);
    ThinGraph thinGraph = (ThinGraph)graphObject;
    QueryClient myQCGraph = (QueryClient)thinGraph.getDataSource();
    Selection mySelGraph = myQCGraph.findSelection(prodID);
    DataAccess daGraph = myQCGraph.createQueryAccess().getDataAccess(mySelGraph);
    // This is a one-d data access, only has the column edge
    int colExtentGraph = daGraph.getEdgeExtent(oracle.dss.util.DataDirector.COLUMN_EDGE);
    for (int i=0; i<colExtentGraph; i++)
    String memberLabel = (String)daGraph.getMemberMetadata(oracle.dss.util.DataDirector.COLUMN_EDGE, 0, i, oracle.dss.util.MetadataMap.METADATA_LONGLABEL);
    String memberValue = (String)daGraph.getMemberMetadata(oracle.dss.util.DataDirector.COLUMN_EDGE, 0, i, oracle.dss.util.MetadataMap.METADATA_VALUE);
    System.out.println(memberLabel + " " + memberValue);
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>
    Hello World
    </title>
    </head>
    <body>
    <FORM name="BIForm">
    <!-- Insert your Business Intelligence tags here -->
    <orabi:Render targetId="untitled2_Presentation1" parentForm="BIForm" />
    <orabi:Render targetId="untitled2_Presentation2" parentForm="BIForm" />
    <%-- The InsertHiddenFields tag adds state fields to the parent form tag --%>
    <orabi:InsertHiddenFields parentForm="BIForm" biThinSessionId="BIThinSession1" />
    </FORM>
    <h2>
    The current time is:
    </h2>
    <p>
    <%= new java.util.Date() %></p>
    <input type="text" name="MyTextField" value=MYProducts readonly>
    </body>
    </html>
    <% } %>
    <%-- End synchronization of the BI tags --%>
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • Query Builder in 2.0

    The Query Builder in 2.0 is really sweet, great job guys!
    You do know you are going to get all sorts of "how did you do this ..." questions about the various cool things you did in there, right? :-)
    When you get a chance, could you please put up demo apps/pages on the hosted site in a publicly accessibly (lock the pages to prevent changes) workspace so we can see how things were done.
    Specifically:
    1. Shrink/expand the list of tables as I type in the search box on the left hand side
    2. How does the table I click on in the list magically appear on the right hand side canvas?
    3. How does the cool drag-n-drop columns between tables to create a join work? [It would be very cool if this feature can be added to make page layout more WYSIWYG!]
    4. How does the little menu appear when I click on the "join line"?
    Thanks

    I have to agree with Vikas, a really great job on the query builder.
    As if you guys don't have enough to do though, I have a request for a How-to document.
    I'd like to be able to call the query builder from my app, have it only display Views (instead of tables and views, maybe a user supplied list of objects?), and save the resulting SQL query as a variable from which I can drive the other pages in my application.
    Just a small request.... :^)
    Bill Ferguson

  • 2.1 EA1: Query Builder does not update View Results query

    When using the Query Builder, if you click onto the View Results tab to see the current query results, then go back to the "Select Columns" or "Create Where Clause" tabs to change the query, the "View Results" tab still shows the results of the original query even if none of the tables or columns from the original query exist. Clicking the Run Report button or setting a refresh interval has no effect.
    On a further note, the query builder still is not reentrant, in that you can't select (highlight a portion of or position the cursor within) a query and open the query builder for that query to graphically make modifications.

    Sentinel,
    The issue is known and is listed in the known issues in the release notes for the early adopter. We hope to have this addressed for production.
    The re-entrant query builder is still on our list of things to do. We plan to rewrite the Query Builder and address a number of the requests related to this feature. I'm hoping to make it a priority for the next release.
    Sue

  • Query Builder session settings as a solve to ORA-01843 (not a valid month)

    Hi All! I'm novice at Oracle and RDBMS, so sorry for a dummy question.
    I'm trying to make some queries to a tutorial database (10g XE) with Query Builder of Application Express 2.1000039.
    I'm requesting columns with id, date of order and status of order; in a column of ordering date as a "where" condition I've wrote:
    >= to_date('23-JUN-2006', 'DD-MON-RRRR') and got an error "ORA-01843: not a valid month".
    Then I've edited row filtering condition:
    >= to_date('23-JUN-2006', 'DD-MON-RRRR', 'NLS_DATE_LANGUAGE = american') and 've got a correct query result, BUT resulting table date format is DD-MM-RR.
    So, here is a couple of questions:
    1. Can I change a session settings (e.g. alter session set NLS_DATE_FORMAT = 'DD-MON-RRRR') such way, to use it in Query Builder, before building an application itself and not to write 'NLS_DATE_LANGUAGE = american' every time I'm inserting data to a date datatype field?
    2. I wonder why resulting table date format is 'DD-MM-RRRR'. How can I get a data exactly in a date format 'DD-MON-RRRR', how I'm specifying in a query?
    My operating system is Windows 7 Home Basic, NLS_DATE_FORMAT is DD-MON-YYYY in 2 cases in register and respectively in environment variable.
    SQL*Plus displays all mentionted query tables correctly, corresponding to an 'ALTER SESSION ..... SETTINGS'.
    Hope to your help, guys. Thanks for answers!

    Hi,
    you can run the following query so you will see the session parameter values, and any differences with database and instance values :
    SELECT
      a1.parameter as "Parameter",
      a1.value as "Database value",
      a2.value as "Instance value",
      a3.value as "Session value"
    FROM
      nls_database_parameters a1
      LEFT JOIN nls_instance_parameters a2 ON a1.parameter = a2.parameter
      LEFT JOIN nls_session_parameters a3 ON a1.parameter = a3.parameter
    ORDER BY
      a1.parameter ASC;What are the values for NLS_DATE_LANGUAGE and NLS_DATE_FORMAT ?
    1. Can I change a session settings such way, to use it in Query Builder, before building an application itself and not to write 'NLS_DATE_LANGUAGE = american' every time I'm inserting data to a date datatype field?In the application, It depends on the Application Primary Language and Application Date Format you have set in the application globalization attributes. But you can also alter the session every time the APEX engine connects to the database, by entering some PL/SQL code in the Initialization PL/SQL Code attribute of the application (Application Builder -> Application -> Edit Security Attributes) :
    BEGIN
       EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_LANGUAGE = ''AMERICAN'' ';
    END;In all cases application level settings will only affect the application, not SQL Commands and Query Builder. I think you have to alter session manually each time for these two last tools :/

  • Enabling the Data Editor in Query Builder 6

    Hi,
    The help in Query Builder 6 says:
    Note: Because the Data Editor enables you to change or delete vital data, Query Builder is shipped with the Data Editor disabled. Contact your system administrator if you cannot activate the Data Editor and you feel you should have access to it.
    Anyway I would like to know how to enable this but have yet to find any documentation anywhere on how to do so, does anyone know how this is done? I know in Oracle Browser all you had to do was add a row in Browser_Profile but Query Builder does not have this.
    Thanks in advance.
    Eric

    I don't have an answer for you but I need your help: Can you tell me if there appeared a manual for Query Builder somewhere?? I can't find anything, even not in this database.
    thank you!
    Michael

  • Vs 2010 Query Builder

    Hi guys,
    i'm using oracle 11.2.0.3 32 bit with vs2010 sp1.
    I'm developing a windows application and i create a dataset file in order to map my db on it.
    I want to add a custom select to a table adapter a i notice a problem.
    My query is: SELECT simulatori.SEQ1.nextval FROM dual
    simulatori is an oracle db and seq1 is a sequence.
    If seq1 has a public synonym the query works, instead, if i want to specified the user also Query Builder quotes the simulatori user and the query doesn't work.
    Why?
    Edited by: user6231851 on 5-dic-2012 11.26

    user6231851 wrote:
    Hi guys,
    i'm using oracle 11.2.0.3 32 bit with vs2010 sp1.
    I'm developing a windows application and i create a dataset file in order to map my db on it.
    I want to add a custom select to a table adapter a i notice a problem.
    My query is: SELECT simulatori.SEQ1.nextval FROM dual
    simulatori is an oracle db and seq1 is a sequence.
    If seq1 has a public synonym the query works, instead, if i want to specified the user also Query Builder quotes the simulatori user and the query doesn't work.
    Why?
    Edited by: user6231851 on 5-dic-2012 11.26What's the error you are getting?
    Not sure what you mean by "quotes the simulatori user". If you mean that it adds quotations in the query, then make sure that you are providing all upper case, eg "SIMULATORI". Otherwise, the quotes may trigger case sensitivity. That's just a guess. I will need more information.

  • Automating Query Builder Functionality?

    Hi,
    My project requires up to date information on the currently live File Repository Server.  I know this information can be found by manually entering a SQL statement into the Query Builder Tool.  However, I have been asked to create a script that performs this task automatically and repeatedly.  When the details of the FRS change, the up to date information must be logged to the Windows Event log from which the information will be lifted by our company's internal log monitoring tool.
    If anyone can give me an idea of how I might do this I would certainly appreciate the help.  I would also be thankful for any suggestions for alternative solutions to the one outlined above.  For instance is there a given pattern I can search any of the BOE log files for to gather the required info?
    I'm a total newbie, so apologies if any of the above sounds a bit naiave or just down right stupid...
    Best Regards
    David

    BOE provides SDK to access the CMS. Please look at http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm for more info on the SDK. You have the option from choosing from Java/webservice or .NET SDK.

  • How to specify an outer join in query builder

    I've very quickly built a large query with the query builder, and it works fine, but only produces 9 out of 2200 records - so I need to change it to an outer join.
    My problem is that I can't seem to find a way to specify an outer join. I've tried editing the query that query builder formed, but it won't let me.
    I know I can capture the query, edit it and run it in sql developer, and that works fine, but I want to use query builder as it is the fastest way I know of to quickly add and remove items - my users are unsure of exactly what to include.
    I know it is kind of a trivial question, but i've searched the forum, the manual, the web and no luck
    Thanks for any help you can give
    Glenn

    Hi Glenn,
    When you use the Query Builder to create the sql statement, you should click on the empty square to the right of the fields on each table to create the join. When you've done this, you should see a line drawn between the two tables. Click on this line and a small popup appears allowing you to select inner, left outer or right outer joins.
    Once the report has been created, though, you need to edit the statement. For example, if you use the Query Builder to join DEPT to EMP based on the DEPTNO field on both tables, you get:
    select      "DEPT"."DEPTNO" as "DEPTNO",
          "DEPT"."DNAME" as "DNAME",
          "DEPT"."LOC" as "LOC",
          "EMP"."EMPNO" as "EMPNO",
          "EMP"."ENAME" as "ENAME",
          "EMP"."JOB" as "JOB",
          "EMP"."MGR" as "MGR",
          "EMP"."HIREDATE" as "HIREDATE"
    from      "EMP" "EMP",
          "DEPT" "DEPT"
    where   "DEPT"."DEPTNO"="EMP"."DEPTNO"Change this to:
    select      "DEPT"."DEPTNO" as "DEPTNO",
          "DEPT"."DNAME" as "DNAME",
          "DEPT"."LOC" as "LOC",
          "EMP"."EMPNO" as "EMPNO",
          "EMP"."ENAME" as "ENAME",
          "EMP"."JOB" as "JOB",
          "EMP"."MGR" as "MGR",
          "EMP"."HIREDATE" as "HIREDATE"
    from      "EMP" "EMP"
          LEFT OUTER JOIN "DEPT" "DEPT" ON "DEPT"."DEPTNO"="EMP"."DEPTNO"Andy

  • Results in Query Builder Differ From Report Results

    I've got a report I built in SSRS using an SSAS dataset. The problem is that the results differ between the query builder result set and the actual report. For some reason, when running the actual report, certain rows are being filtered out, but yet those
    same rows appear in the result set when validating the query in the query builder.
    Here's the result set as it appears in query builder:
    ...and here are the results of the actual report:
    As you can see, 3M and Angie's popcorn are not returned in the report. I have no filters defined on the report at all.
    This appears to be happening with other result sets for the same report.
    No idea why the results are accurate in query builder and then off in the actual report.
    Any help would be appreciated!
    A. M. Robinson

    Hi A. M. Robinson,
    The issue may be caused by the data cache. When we preview a report, the report processor runs all the queries for datasets in the report using the current parameter defaults, and saves the results as a local data cache (.rdl.data) file. We can continue
    to design our report without incurring the overhead of retrieving this data again if we make no changes to either the report dataset queries or the report parameters. Please to delete the cache (.rdl.data) file try to solve the issue.
    Reference: http://technet.microsoft.com/en-us/library/ms157366.aspx
    Alternative, you can create a similar report to check if the issue is persist.
    If the issue is persist, could you please post more detail information about your report design?  It is benefit for us to do further analysis.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

Maybe you are looking for

  • Item Level Validation - on a page

    I have condition where I have 2 item on a page. One is a check box and another Items is for entering the Number . I have to have a condition where When the Check box item is checked alone the next ITEM should run ITEM not NULL condition. If the Check

  • Airport Extreme blocking internet on phone and ipad but not imac

    I got a new TIme Warner cable modem yesterday and since then my Airport Extreme does not work properly. Time Warner see it at their end but told me that it blocks the signal from the modem to the computer. However after much fiddling around with it I

  • How to remove a component from a panel

    i have a table attached to a scrollpane...the scroll pane is attached to the CENTER of a panel that have a borderlayout like this : JScrollpane sp = new JScrollpane(table); add(sp, BorderLayout.CENTER); how to remove the table from the center....i ha

  • A font question in CS3

    I get so ahead of myself and sometimes forget the basics of Flash. These are gonna look like a newbie questions but I gotta be sure. If I use (example) Apple Chancery TTF in a Flash movie, publish the file and look at it on a pc, unless the pc has th

  • Print to tape only prints black. I can capture perfectly.

    Whenever I try to print to a tape it only records black. I am able to captire a tape properly. I have changed computers, decks, programs and cables. Nothing works. HELP.