WebBased SQL query builder

Hello,
I was wondering if there were any good sql query builders that I can add to my
application. I found a jquery plugin called "Sqlquerybuilder" (http://plugins.jquery.com/project/SQL_QUERY_BUILDER). It's
almost what I need but the saved queries will break if the schema changes since
all of the table columns are stored as integers for point in an array.
Thanks,
tom

We are in the process of development of Web-based SQL query builder based on jQuery, you may see it's live demo at http://aspquerybuilder.net/
Initially developed for ASP.NET, it can be easily ported to JSF and ColdFusion in the near future as we already have server-side Java version.

Similar Messages

  • How to include lexical parameters in IN string in SQL QUERY BUILDER ?

    Hi,
    I have to write an SQL Query in SQL QUERY BUILDER in Reports 6i to retrieve all details pertaining to donor codes i insert randomnly at runtime.
    The Statement is like this
    SELECT TITLE_TAB.TITLE_CODE,DONOR_TAB.DONOR_CODE, DONOR_TAB.FIRST_NAME,DONOR_TAB.MIDDLE_NAME,DONOR_TAB.LAST_NAME,CITY_MASTER_TAB.CITY_CODE FROM DONOR_TAB,CITY_MASTER_TAB,TITLE_TAB
    WHERE DONOR_CODE IN (1,2,6,70,....)
    I cannot use lexical parameter '&' in SQL QUERY BUILDER as i have to use bind variable donor_code.
    How do i do it?

    How do i do that? Can you give me an example of how i can go about with it?

  • SQL Query Builder Error

    Hi,
    I'm trying to build a data model based on data on our server. I've created a Data Set in SQL using the Query Builder, but when I go to save, I receive this error message:      
    [Hyperion][SQLServer JDBC Driver][SQLServer]Invalid object name 'CMPROJ.DBO.ISDT'.
    Does this have anything to do with accessing my server? Any suggestions?
    Many Thanks.

    Sorry but this has nothing to do with this thread - aimed for questions around Oracle Communications Data Model, the Enterprise Data Warehouse for Telcos available as DB option.
    You might want to ask your question to the BIapps folks/Hyperion Thread. If still interested by "building" a data model for comms, you'd better save time and get something pre-built like OCDM...
    Regards
    Axel.

  • Creating a dynamic SQL query builder class

    I have a jobs table where each row contains information about jobs run on a machine. I have a web view of this database which shows different information and queries for this information are built using the following fields:
    TYPE
    TITLE
    NODE
    STATUS (an array of 4 different possible statuses)
    TIMESTAMP
    GUID (will be used when a view of a specific job (row in the table) is requested, no other search criteria needed when this view is required.)
    All the criteria will be passed from the view layer into a search criteria object which is then passed to the DAO class which passes it to a BuildSQL class to use it to build the SQL.
    There are many different "views" of the data which will result in many different combinations of criteria being passed down to the data access layer. (for example a status of failed and a timestamp resulting in all the jobs run in the last 2 hours)
    As there are a number of different search criteria used in each query I'm having trouble designing the class to dynamically build the query. Are there any standard ways of doing this out there that could guide me?
    At the moment I'm seeing this class as being a large combination of if statements and not really being very dynamic.
    I was thinking maybe checking all the criteria to see if its null, if so ignore it straight away and then running through all the other criteria and appending one by one to the may SELECT which has already been created. Quite how i'd decided whether it would need an AND or OR before it I dont know.
    Are there any standard proven ways to approach this because i've done a search here and on google and not really come back with much, so any advice would be great. I've got to say I'm pretty new to java and don't really have many bright ideas here!

    Well my dear friend... I did something special for a business logic support to an web autocomplete component.
    The criteria building was based on a custom variable into the SQL statement:
    SELECT * FROM TABLE WHERE __MC__ AND (FIXED CRITERIA)
    Where:
    *FIXED CRITERIA: Is a fixed criteria that doesn't variate
    *__MC__: Is a "custom variable" defined for me to make the replacement.
    There are two main clases:
    *SQLBuilder: It has many logic to build SQL Statements
    *Multicriteria: It has the specific logic to insert into a SQL statement multiple criterias
    // The SQLBuilder class
    public class SQLBuilder {
        public static final String MC = "__MC__";
        static String buildMultiCriteria(String sql, Object[] params) throws Exception {
            for(int i=0; i<params.length; i++) {
                if(params[i] instanceof MultiCriteria) {
                    sql = sql.replaceFirst("__MC__",
                            ((MultiCriteria)params).getCriteria());
    params[i] = null;
    return sql;
    // The MultiCriteria class
    public class MultiCriteria {
    public static final int BEGINS = 0;
    public static final int ENDS = 1;
    public static final int CONTAINS = 2;
    private String criteria = null;
    public MultiCriteria(String[] fields, String value, int type) throws Exception {
    String[] tokens = value.split(" ");
    StringBuffer sb = new StringBuffer("(");
    for(int i=0; i<fields.length; i++) {
    for(int j=0; j<tokens.length; j++) {
    if(tokens[j].length()>0) {
         sb.append(fields[i].toUpperCase());
         sb.append(" LIKE '");
         sb.append(toType(tokens[j], type));
         sb.append("'");
         if(j<tokens.length-1) sb.append(" OR ");
    if(i<fields.length-1) sb.append(" OR ");
    sb.append(")");
    criteria = sb.toString();
    public String getCriteria() {
    return criteria;
    private final String toType(String value, int type) throws Exception {
    switch(type) {
         case BEGINS:
         value = value + "%";
         break;
         case ENDS:
         value = "%" + value;      
         break;
         case CONTAINS:
         value = "%" + value + "%";      
         break;
         default:
         throw new Exception("Undefined MutiCriteria type");
    return value;
    // I use the MultiCriteria this way
    // criteria is a string introduced in a html input text
    // The class splits the string by " " and ensemble multiple criterias
    // for the given fields permuting them with the tokens resulting of the
    // split
    MultiCriteria mc = new MultiCriteria(
    new String[] {"FIELD_01", "FIELD_02"},
         criteria,
         MultiCriteria.CONTAINS
    I think this idea could help you.
    Anything else, write me at [email protected]
    Best Regards,

  • Query Builder (Express Edition 10g) is not working in Google Chrome

    Google Chrome is not properly displaying table in SQL Query Builder (Oracle Database Express 10g).
    It is not possible to select all fields of given table because not all fields are displayed and I can't go down to select last field.
    In Mozilla Firefox this is possible. In Google Chrome table bar is not displayed.

    pilczew wrote:
    In Mozilla Firefox this is possible. In Google Chrome table bar is not displayed.Which is APEX version?
    Upgrade to APEX 4.0 - it should work then properly also in Google Chrome.

  • SQL Query editor misbehaving

    SQL query builder does not allow LIKE criteria for selecting
    data, as in:
    SELECT ALL ROOT.PERSON.PERSONID,
                             ROOT.PERSON.JOBTITLE,
                             ROOT.PERSON.FREQUENTFLYER,
                             ROOT.PERSON.NAME
        FROM ROOT.PERSON
    WHERE PERSON.NAME LIKE ? ;I tried editing the JAVA code for my web form directly:
               personRowSet.setCommand("SELECT ALL ROOT.PERSON.PERSONID, ROOT.PERSON.JOBTITLE,
    ROOT.PERSON.FREQUENTFLYER, ROOT.PERSON.NAME
    \nFROM ROOT.PERSON\nWHERE PERSON.NAME LIKE ?");
    but as soon as I click on the SQL Query editor, eg. to add an output column, an error window pops up, and in the JAVA
    code the 'LIKE' statement becomes '='.
    I tried typing the 'LIKE' criteria in the SQL source code window,
    but I get the same behaviour: the JAVA source gets updated, but
    as soon as I return to the SQL Query editor, the error window
    pops up and the 'LIKE' statement is replaced by '='.
    Otherwise I found the way the IDE handles data table
    component binding to database data rather elegant.
    lovely work, guys!

    Nice to know that, thanks for the feedback.
    Please consider the "LIKE" operator a very powerful and useful SQL keyword, by means of which you can incorporate all kinds of expressions in order to build a comparison that is much like regular expressions.
    Whoever used the LIKE operator to select stuff is probably never give it away because it is so powerful and programmable with variables and all sorts of constructs - you can practically go after any "text" field with it and get it your way.
    I personally would rather have the EQUAL operator handle regular expressions directly - but I found LIKE easier and more viable to handle programmatically using variables/field contents as part of the search arguments. This ia also a limitation of SQL Server, Access, etc. - but you can't say that they didn't provide you with a suitable ersatz.
    So I guess supporting LIKE makes sense for Studio Creator...

  • Date Data Selection in Query Builder using Hyperion JDBC Driver

    Hi,
    I am trying to filter out data prior to a specific request date on Query Builder. I have tried :
    and SALES_ORDER_FACT.REQ_DT < sysdate()
    I have also tried {$SYSDATE()-1$} , {$SYSDATE()$}, SYSDATE and SYSDATE()
    Any assistance will be appreciated.

    Is this related to Oracle BI Publisher?
    You should be able just to edit the query correctly in the text - you ddon't need to use the SQL query builder.
    The query is passed through so in general you should use the syntax of HJyperion.
    {} has a special (I think undocumented) meaning in BI Publisher so {} could potnetially cause problems.
    Klaus

  • Filtering Date in Query Builder Condition Tab

    Hi,
    How Do i use the condition Tab in Query Builder to filter a date a column?
    For example, I used < to_date('1998-01-01','yyyy-mm-dd'). But this condition gives me a syntax error.
    Anyone has ideas?
    Thanks
    rkingmdu

    Is this related to Oracle BI Publisher?
    You should be able just to edit the query correctly in the text - you ddon't need to use the SQL query builder.
    The query is passed through so in general you should use the syntax of HJyperion.
    {} has a special (I think undocumented) meaning in BI Publisher so {} could potnetially cause problems.
    Klaus

  • How to build sql query for view object at run time

    Hi,
    I have a LOV on my form that is created from a view object.
    View object is read-only and is created from a SQL query.
    SQL query consists of few input parameters and table joins.
    My scenario is such that if input parameters are passed, i have to join extra tables, otherwise, only one table can fetch the results I need.
    Can anyone please suggest, how I can solve this? I want to build the query for view object at run time based on the values passed to input parameters.
    Thanks
    Srikanth Addanki

    As I understand you want to change the query at run time.
    If this is what you want, you can use setQuery Method then use executeQuery.
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14022/oracle/jbo/server/ViewObjectImpl.html#setQuery_java_lang_String_

  • Help needed in building a  sql query

    Hello,
    I am using Oracle 10g db.
    I have 3 tables table1 and table2 and table3
    I am writing one sql query which is like
    select table1.a a1,(select distinct b from table2,table3 where table2.id=table3.id and table1.id=table2.id) b1
    from table1
    Now the b1 value may give more then 1 values so when i am trying to execute the query its giving me error.
    What i would like to have is if it gives returns more then 1 value then add that value as a new column means if b1 gives like abc and def as values.
    Then i want the sql to return like
    acolvalue abc def as a single row.
    Is this possible to do?
    Thanks

    Hello,
    The approach which i took is i wrote a function which gives me the b values , sseparated.
    Then i am building a outer query considering the max of b so i just found there are max 10 values which one row is showing.
    select b11,b12,b13,,,b10
    from (
    select table1.a a1,func(select distinct b from table2,table3 where table2.id=table3.id and table1.id=table2.id) b1
    from table1)
    but now i am facing problem like the value of b1 is a,b,c
    i want to use the substr and instr function to get
    a as b11
    b as b12
    c as b13
    can anyone pls help me out to write a query? i am getting b11 but other values are somehow not coming.
    for b11
    i used
    substr(b1,1,instr(b1,',',1,1)-1)
    Thanks

  • Build dynamic SQL query in Database Adapter.

    Hi All,
    I have a requirement to build dynamic sql query at Database Adapter.
    My BPEL process is getting search spec as input from siebel. I need to process this searchspec in BPEL and need to build the SQL query dynamically at Database Adapter to fetch the records from DB.
    it goes like this....
    1. Sieble Search Spec: city1 OR city2 OR city3 OR city4 .....
    I need to build query as
    select * from S_ADDR_PER where city like 'city1' OR city like 'city2' OR city like 'city3' OR city like 'city4' ......
    2. Siebel Search spec: city1 AND country1 AND state1....
    I need to build query as
    Select * from S_ADDR_PER where city like 'city1' AND country like 'country1' AND state like 'state1' ....
    3. Siebel Search spec: state
    I need to build query as
    select * from S_ADDR_PER where state like '%state%';
    Is it feasible in Database Adapter? if its Yes.
    Any guidelines to achieve this?
    Thank you
    Chandra

    Hi All,
    I have a requirement to build dynamic sql query at Database Adapter.
    My BPEL process is getting search spec as input from siebel. I need to process this searchspec in BPEL and need to build the SQL query dynamically at Database Adapter to fetch the records from DB.
    it goes like this....
    1. Sieble Search Spec: city1 OR city2 OR city3 OR city4 .....
    I need to build query as
    select * from S_ADDR_PER where city like 'city1' OR city like 'city2' OR city like 'city3' OR city like 'city4' ......
    2. Siebel Search spec: city1 AND country1 AND state1....
    I need to build query as
    Select * from S_ADDR_PER where city like 'city1' AND country like 'country1' AND state like 'state1' ....
    3. Siebel Search spec: state
    I need to build query as
    select * from S_ADDR_PER where state like '%state%';
    Is it feasible in Database Adapter? if its Yes.
    Any guidelines to achieve this?
    Thank you
    Chandra

  • Build a sql query fro different table and insert into a table

    Hi I have a requirement ,
    i have some table 1 table which holds rules which rules i have to apply on the sql query
    2 table will hold table name and column name and transformation
    with these help of 2 tables i want to build a sql quey and the sql query need to be insert into another  table.

    Hi Karthick,
    I am not going to build Dynamic Data Model.
    i already have table 1 contains rules let's say COUNT,
    and another table contain source table name , column name , Target table name, Source Table name like that
    so with the help of these 2 tables i want to build Sql query and going to insert into 3rd table.

  • SQL developer 3.0 - Few Query Builder issues

    Hi All,
    I have just started using SQL Developer 3.0 so have not fully browsed thru all of the available options in SQL Developer. I have been trying to work on creating and editing sql statements using Worksheet and Query Builder.
    I am working on to test this tool so I can give it to the users for them to try and use it - they used to work on the old Query Builder 6.0.7....since it is already de-supported long back to work against 11g database, I am hoping to tell them to use SQL developer 3.0 instead.
    Hence, if an user doesn't know how to write a sql statement, he/she would try to do the same using Query Builder.
    So, the following questions are more aligned towards a normal user who would try to create a query in the Query Builder window, instead of directly typing a sql statement in the Worksheet window.
    1) How to establish/create a relationship between tables after you have dragged down the tables into the Query Builder window? - i tried but couldn't get any options!.
    2) Sometimes I see 'Connection closed' error when i try to run a query. How to refresh the connection without opening a new Connection tab?
    - I tried this but evertytime it opens up a new connection tab, while the old tab is still present.
    3) Columns in the Expression field in Query Builder window can ONLY be displayed in the result set, if the 'output' box on the extreme left of the 2nd section in Query Builder window is checked.
    Now when i try to check the output box for an expression (with few aggregate functions), the 'Grouping' check box automatically gets checked, which when run throws an ORA-00934 error: group function is not allowed here...but when I de-select the 'Grouping' check box, the 'output' box also gets un-checked!.
    How to solve this out?
    Please let me know the resolutions of the above - much appreciated.
    With Regards,
    Pamir
    Edited by: user651047 on 11-Aug-2011 07:53

    Hi,
    As Raghu noted above, and you also saw in rp0428's following reply,
    Re: Problem with displaying sdo_geometry objects
    drilling down to the cell edit details is your only recourse for now. Apparently there will be further work done in this area, but it is not clear exactly what or when it will be. For those with access to it, here is a bug reference:
    Bug 13680849 - RC1: NOT DISPLAYING THE DATA OF MDSYS.SDO_GEOMETRY
    Regards,
    Gary

  • Tool for visually building an SQL query?

    Hello,
    Can anybody recommend a good tool that allows building an Oracle SQL query through a visual interface (similar to MS Access query builder)?
    I checked Oracle SQL Developer (from Oracle) but apparently it only allows building SELECT queries visually, I need to be able to create UPDATE and INSERT statements as well...
    Thank you,
    M.R.

    I'm not very clear on what you want or what you are trying to 'simulate'.
    If you are looking for a way to "build a gui" that allows you to simultaneously modify multiple rows of data in a table:
    This sounds like a "tabular form" in Oracle APEX (which is free with all editions of Oracle including the free XE edition. )
    URL for the out-of-the-box sample "application" that demonstrates a Tabular Form for modifying the EMP table:
    https://apex.oracle.com/pls/apex/f?p=71793:4
    name/password:  demo/demo
    Feel free to sign up for a free account to play with it.
    MK

  • SQL Developer replacing Query Builder 6.0.7

    Dear All,
    We know SQL Developer 3.0 has a link to Query Builder from within it, but does it contain a similar structure as we saw in the old Query Builder 6.0.7 developed by Oracle long back?
    The old Query Builder 6.0.7 could be used for editing and creating parameterised queries and generating formatted output, so just want to know if we can get the similar functionality using SQL Developer 3.0.
    1. Whether SQL Developer 3.0 can create and edit queries by selecting data tables in Oracle?
    2. Can it convert any old Query Builder queries (in .brw extension) to a format that can be run in SQL Developer 3.0?
    I am about to download and install the SQL developer 3.0, but thought of asking here first and get some advice/views.
    So, Please reply back with anything that might help me out.
    With Regards,
    Pamir

    Yes thanks Jim...I realised that when I started to dig more into this.
    Now I have downloaded and installed the software...currently am able to create, edit queries and do other stuff.
    With Regards,
    Pamir
    Edited by: user651047 on 11-Aug-2011 06:56

Maybe you are looking for

  • How do I access my iTunes library on a second hard drive?

    I installed a 128MG SSD, which is too small for storing my iTunes library. My iTunes library is on a second hard drive (my Mac Pro has four internal hard drives). I went to iTunes Preferences. Under Advanced Preferences "iTunes Media folder location"

  • Pass table name as a parameter to function

    Is there a way to pass table name as a parameter to functions? Then update the table in the function. Thanks a lot. Jiaxin

  • Get error message when sending PDF link via e-mail

    I have Acrobat 9.5.5 since the upgrade I can't open a PDF file and when I do I can't send it directly to e-mail and get an error message.

  • Error:Item '-' has no serial number management

    We got that error during posting an AP Invoice. There are 27 lines, of those 17 line items are batch managed and we have defined batches for all the line items. All items are non serial or batch managed. The error appears irrelevant to the doc... Any

  • Modifying Solaris 10 perl Config.pm values

    Numerous perl packages won't build on my Solaris 10 systems because the Solaris 10 perl's Config.pm packages identifies $Config{'cc'} as "cc" and not "gcc". I'd like to just update Config.pm to just point to gcc and not cc. Is there a better way to d