Configure "Query Builder" for Theta-Style Joins over ANSI-Style Joins

Can SQL Developer be configured to auto generate theta-style joins instead of ANSI-style joins when building queries? This happens when I generate a query using the Query Builder and then switch over to the Worksheet tab to see the SQL code.
Sample code:
Theta-style join syntax uses commas to separate multiple table names and creates the joins in the Where clause:
SELECT c.name
FROM instructors i, courses c
WHERE i.firstname = 'Mary' AND i.lastname = 'Williams'
AND i.course_id = c.course_id;
ANSI syntax uses the JOIN and ON keywords instead:
SELECT c.name
FROM instructors i JOIN courses c
ON i.course_id = c.course_id
WHERE i.firstname = 'Mary' AND i.lastname = 'Williams';

Hi Wes,
There is no preference for configuring this that I know of, but Query Builder is fairly clever about detecting your flavor of SQL from the worksheet then sticking with it. If you design it graphically, the default flavor is ANSI, but QB seems to respect any worksheet edits that switch it to another flavor. I wouldn't vouch for that absolutely, but perhaps it's behavior you can take advantage of.
Regards,
Gary
SQL Developer Team

Similar Messages

  • Query builder bug in outer joins ?

    I understood that if you were joining two tables A and B, the following was a
    LEFT OUTER JOIN
    SELECT A.COL, B.COL
    FROM A, B
    WHERE A.ID = B.ID (+)
    ie: a LEFT outer join has the (+) on the Right-hand table.
    However, query builder puts the (+) on the Left-hand table.
    Same for a RIGHT outer join - I think the (+) should be on the Left-hand table, but query builder puts it on the Right-hand table.
    Cheers,
    Andrew
    (running Version 2.1.0.00.39)

    Hi Andrew,
    I just played a little with the query builder and created a join between two of my tables:
    PROJECTS and ACTIVITIES, linked via KCC.
    When I create a left outer join in query builder, I get the following result:
    select     "PROJECTS"."KCC" as "KCC"
    from     "ACTIVITIES" "ACTIVITIES",
         "PROJECTS" "PROJECTS"
    where "PROJECTS"."KCC"(+) ="ACTIVITIES"."KCC"
    Which is correct: Left refers to the first table in the from clause (ACTIVITIES) and places the (+) on the other table!
    Left and right refers to the order of tables in the from clause, not in the where clause. Query builder sorts the tables in FROM alphabetically, maybe this is differing from the graphical order in query builder.
    Regards
    Alex

  • [svn] 4258: Bug: LCDS-522 - Add more configurable reconnect handling for connecting up again over the same channel when there is a connection failure /outage.

    Revision: 4258
    Author: [email protected]
    Date: 2008-12-08 16:33:17 -0800 (Mon, 08 Dec 2008)
    Log Message:
    Bug: LCDS-522 - Add more configurable reconnect handling for connecting up again over the same channel when there is a connection failure/outage.
    QA: Yes
    Doc: No
    Checkintests Passes: Yes
    Details:
    * Updates to configuration handling code and MXMLC code-gen to support new long-duration reliable reconnect setting.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-522
    Modified Paths:
    blazeds/trunk/modules/common/src/flex/messaging/config/ClientConfiguration.java
    blazeds/trunk/modules/common/src/flex/messaging/config/ClientConfigurationParser.java
    blazeds/trunk/modules/common/src/flex/messaging/config/ConfigurationConstants.java
    blazeds/trunk/modules/common/src/flex/messaging/config/ServicesDependencies.java
    blazeds/trunk/modules/common/src/flex/messaging/errors.properties
    Added Paths:
    blazeds/trunk/modules/common/src/flex/messaging/config/FlexClientSettings.java
    Removed Paths:
    blazeds/trunk/modules/core/src/flex/messaging/config/FlexClientSettings.java

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • GUI Query Builder for Users

    Hey all,
    For anyone who was following my last post, I did convince my
    boss to buy CF, so epic win there. I am now starting to replace
    some our existing software with CF based code. One of the first
    things we would like to do is setup a "Query builder" type of
    thing. Basically we have a database with over 100 fields in a
    particular table. I need some kind of interface that will allow a
    user to easily build a complex query that can include any number of
    those fields. Before I start reinventing the wheel I was wondering
    if anyone had code for something like this already or could point
    in the direction of a place that might. All it needs to do is put a
    nice front end on an SQL query basically, and really only for the
    where statement part of it. We are always going to be selecting the
    same info, from the same table, but what records we select will be
    very very different. Thanks in advance.

    A slightly more fleshed out example: Code is CF8 based, some
    features
    not compatible with older versions, but easily convertible.
    <cfscript>
    aTest = [
    label = 'foobar',
    updateable = false,
    type = 'picklist'
    label = 'george',
    updateable = true,
    type = 'int'
    label = 'nix',
    updateable = true,
    type = 'picklist'
    label = 'gracie',
    updateable = false,
    type = 'text'
    </cfscript>
    <cfdump var="#aTest#">
    <cfset FormItems = structNew()>
    <cfloop array="#aTest#" index="key">
    <cfset aTemp = structNew()>
    <cfset aTemp.label = key.label>
    <cfset aTemp.updateable = key.updateable>
    <cfset aTemp.type = key.type>
    <cfif NOT structKeyExists(FormItems,key['type'])>
    <cfset FormItems[key['type']] = arrayNew(1)>
    </cfif>
    <cfset arrayAppend(FormItems[key['type']],aTemp)>
    </cfloop>
    <cfdump var="#FormItems#">
    <cfoutput>
    <cfloop collection="#formItems#" item="elemAry">
    <h1>#elemAry#</h1>
    <cfloop array="#formItems[elemAry]#" index="element">
    <p>#element.label# - #element.updateable# -
    #element.type#</p>
    </cfloop>
    </cfloop>
    </cfoutput>
    Will need some modification to match your situation and there
    is some
    redundancy that could be eliminated. But should be a good
    proof of concept.

  • InstallBase-No configuration is build for Configured Items procured thru PO

    No configuration is build in Install base for Configured Items procured thru PO.
    Problem Description:
    We created a PO for a Configured Item and received into an Org ( setup as serialized at receipt) for stocking purpose. The Entire Configuration is not created in Install base. We expected both the Parent and the child ( which are IB-trackable) to be created in the Install base. But the child is not created in the Install base.
    We set the profile CSI:Explode BOM as "yes" and still it did not help.
    Any ideas . ( Note : this is a duplicate post. I have posted under Procurement forums as well).
    Regards
    Kumar

    <u><i><b>Steps for SD Variant Configuration</b></i></u>
    Some light on Variant Configuration in Detail.
    The procedure is as follows:
    1. Create a Material - KMAT type with Item category (002)
    2. Create Charateristics in CT04 - Zbike, where in values mention the Color of the bile like Red, Blue etc
    3. Create another characteristics in CT04 - ZPrice, where directly go the additional data tab and maintain the table SDCOM and field VKOND (ABAP Dictionary it will ask for)
    4. Assign these two characteristics to a Class in CL01 - ZBikeclass ( Type 300) in characteristics tab page.
    5. Then go to CU41 Configuration profile select the material and enter the description click on the class assignment ie assign Zbikclass.
    Now go back to CT04 - enter Zbike -go to values- select Red- go to extras - Other Dependencies - Select Procedure enter in front 10 write - $self.ZPrice='Red' and save
    6. Now go back go to extras - Other Dependencies - assignments and assign relationship ( by default it will come just save)
    7. Now select Blue- go to extras - Other Dependencies - Editor - Select Procedure enter in front of 10 write - $self.ZPrice='Blue' and save
    8. Now go back go to extras - Other Dependencies - assignments and assign relationship ( by default it will come just save)
    9. Now go to VK11 - Enter VA00 (Condition)(For Std RVA001 Pricing Procedure) - enter variant Red and Blue give the rates accordingly and create the sales order.
    Reward if it helps
    Regards,
    Anbu

  • Create or find Query builder for mysql or any db

    Ok. Is there a query builder tool out there that will let me create queries on the fly for an application or do I need to build it myself? This is the scenario. I have a client that is in the real estate business, and he wants users to be able to go to his site, query his (mysql)-at the moment db, and get a result set back. I could easily create some queries that would take in a paramater and query the db for it and return result back. But, he wants them to be able to be able to put in specific info. Houses in this certain region, certain number of bedrooms, houses in this price range, etc... I have done a few query statements, but never built a dynamic query tool. What are my options, and/or how would I go about this and what should I use?
    orozcom

    Most query builders I have seen simply allow the user to build an SQL select statement, given a list of tables and the columns in those tables. But you do not want one of those, as the users of the site aren't going to want to write SQL. You need to write some code that takes their selections (e.g. a drop-down box with a list of region codes, a text box for number of bathrooms, whatever) and builds a query from that.
    I think any package that did that sort of thing would be so complex (think Struts for example) that you are better off writing the code yourself.

  • Query Builder for Date

    If (LIKE @Name+ '%') is for searching names in Local Database then what is the Query if we want to find for date

    You could use BETWEEN:
    https://msdn.microsoft.com/en-us/library/ms187922.aspx?f=255&MSPPError=-2147217396
    SELECT * FROM Table WHERE [DateColumn] IS BETWEEN '2015-01-01' AND '2015-12-31'
    Or you could compare with different parts of a date, for example the month:
    SELECT * from Table1 WHERE MONTH(DateColumn) = 1 -- = January
    But please ask T-SQL related questions in the appropriate forum:
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=transactsql
    Please also remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

  • Result Source Query Builder Filter for Content Sources

    I have several content sources that I want to add to a result source as a property filter. It works fine if I just have one but when I add multiple content sources it does not give me all the results. Is there a way to add more than one content source
    filter to one result source.

    Hi SpGurlz,
    How did you set the filter with content source in the query builder for the result source?
    I tested with more than one content source as filter in the query builder for the result source in my environment, and all the corresponding results were displayed fine.
    The query text for the result source was set like this: {searchTerms} contentsource:file1 contentsource:file2.
    Remember to add a space between the “{searchTerms}”, “contentsource:file1” and “contentsource:file2”.
    You can provide the query text of your result source here and I will help to check the logic.
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Query Builder in Web application

    Hi, I want to develop a web application, which include query builder for database using Jdeveloper nad ADF. In this application must be page with this queries and execute them. The problem is that i have no idea how to realize it, Please help me
    Manuals, links and other information would be good.

    <puts flame shields on>
    APEX has this out-of-the box, perhaps that would be a better tool for the job?
    <ducks>
    John

  • Tables not in Query Builder table list bug?

    In HTML DB version 1.6.0.00.87 we have tables defined in our schema in our workspace. When we create a view and click on the [Query Builder] link, no tables are in the drop down list for our schema. Why? The schema is there. I can go into the SQL Workshop and query the records our of the tables, but they are not listed in the [Query Builder].
    I tried this same function but with my workspace at htmldb.oracle.com. The tables in my schema are listed there.
    Is this a bug that was fixed in version 1.6.1.00.02?

    There is one schema assigned to the workspace. That schema is listed in the pop-up window. Here are the steps I am doing:
    1.) Click on SQL Workshop
    2.) Click on Create Object
    3.) Click on View
    4.) The correct schema is listed in the Schema field. There is only one schema in the drop-down list for the Schema field.
    5.) Click on [Query Builder]. A separate browser window appears with the correct schema. There is only one value in the drop-down list for the schema. "- Select Table -" is in the TABLE field.
    6.) I click on the TABLE field to get a list of tables for the schema. Only "- Select Table -" is listed. No other tables are listed.
    I can cancel the Create View and return to the main page of the SQL Workshop. I can click on Tables to see what table are available. I select the correct SCHEMA and see the list of tables.
    I tried this in the same version of HTML DB (v 1.6.0.00.87) in a different database ie. a different HTML DB repository and received the same results, missing tables in the pop-up page
    I do not know why the tables do not list in the [Query Builder] for the Create View.

  • Re: Some Tables are missing: Query Builder

    Thank you!!! I had the same problem and this (table.xml) has helped, I can now see the tables in the left.
    I'm also not able to see any tables in the "Query Builder". I have tried to explore to see if the fix is similar with no luck. Does the Query Builder have a simlar fix?
    Thanks!!!
    Max

    Max,
    I branched this query to start a new thread. While the thread: Some Tables are missing did help you see your tables, much of the discussion happened last year and was not about the query builder.
    In the query builder for the current 1.1.2 build, you can only see tables you own. In the next update, you'll also be able to see tables you have select access to.
    Regards
    Sue

  • 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

  • After I edited the SQL in a dataset, I can't use the query builder in any datasets that I create.

    Is there a way to reset BI Publisher Enterprise 11 so that I can use the query builder again instead of having to write out all of the SQL? I know that I can't use the query builder for the dataset that I edited the sql in but I would like to use the query builder for new datasets.
    Thanks,

    Hi J_Constantine,
    Welcome to the Apple Support Communities!
    I understand that your iPad is restarting and not responding sporadically. You have already attempted some great troubleshooting steps and I think you are on the right track. Holding the home button is one step that you take while placing your device in recovery mode to restore. This is the method that I would suggest to restore. For complete information on how to place your device into recovery mode, please reference the attached article. 
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    Best regards,
    Joe

  • How to diasable Data Edit in Query Builder?

    Is there a way to disable Data Edit in Query Builder in Dev6? When QB was part of Discoverer as Browser it was possible via BROWSER_PROFILE. The QB now ignores this neither it have any table instead. There is note in help that the feature is disabled by default and admin should have to enable it, but, seems, it is occasionally left from previous releases.
    TIA,
    Uldis

    Hi,
    What did you mean the “string”? What did you want to do to use the string parameter?
    Did you mean managed properties?
    If you mean the managed properties, you can just select the managed properties in the query builder, the query builder would automatically generate the path.
    There are some articles about the query builder for your reference.
    http://en.share-gate.com/blog/sharepoint-2013-content-search-site-portal
    http://blogs.technet.com/b/mspfe/archive/2013/02/01/how-query-rules-and-result-sources-can-be-used-to-customize-search-results.aspx
    What’s more, there are some restrictions for KQL, you can also have a look at it.
    http://msdn.microsoft.com/library/ee558911(v=office.15)
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Simple query builder

    Hi,
    I'm looking for simple query builder for free using, which is helper for any user, who no experiences with SQL (knows it a little). RDBMS is Oracle 8.0.6
    Regards
    Krzysztof Malinowski

    Hi,
    you may use the Oracle Query Builder for such purposes. The Query Builder is a component of the Oracle 6i Forms Developer Suite, which is downloadable here at OTN. The new Oracle 9i Developer Suite DOES NOT contain this product.
    Greetings
    Werner

Maybe you are looking for