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.

Similar Messages

  • 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

  • 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.

  • 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.

  • Query Folding for MySQL and PostgreSQL

    Hi there!
    I use simple M code (see below) but PQ load all rows instead of doing Query Folding.
    What's wrong?
    let
        Source = MySQL.Database("10.8.0.10", "leb"),
        leb_x_sale_orders = Source{[Schema="leb",Item="x_sale_orders"]}[Data],
        #"Removed Other Columns" = Table.SelectColumns(leb_x_sale_orders,{"ID", "CANCELED", "PRICE", "USER_ID", "DATE_INSERT"}),
        #"Filtered Rows" = Table.SelectRows(#"Removed Other Columns", each Date.IsInPreviousDay([DATE_INSERT]))
    in
        #"Filtered Rows"

    Thank you for the feedback. From a quick look, perhaps the Date functions are not folding. Here is a relevant
    post.
    You may consider to use text functions as a workaround, or wait till we check this out.

  • HT4796 Pc cant find the Imac for tranfers.. any suggestions ??

    Apple people .. please help me..

    What is your problem? Be specific.
    First off the PC doesn't Find the iMac. The iMac finds the PC.
    Second you REALLY Do Not want to use Migration Assistant. Just copy over your personal files from the PC to the Mac. Do that either over your LAN or to an external drive formatted FAT32 or exFAT.
    Migration assistant, If it Works, has unintended consequences.
    There is nothing on any PC, other then personal data files (Images, Music and office files), that work on a Mac. No programs or settings will be carried over.

  • 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

  • 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]

  • 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.

  • Query builder, procedural builder - Oracle 8.17

    I'm running Oracle 8.17 and I can't find query builder, procedural builder, report builder form builder and other builders. Where can I get these? I tried the universal installer and there are no options to install them.

    Hi Fraser,
    Thank you for responding.
    I think I fixed that problem,actually there was a spelling
    mistake in one of the parameter files.
    But now I get another error message, says:
    "ORA: 02068: following severe error from MSOLEDB
    ORA: 28511: lost RPC connection to heterogenous
    remote agent using
    SID = (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)
    (HOST=LOCAL_HOST)(PORT=1521)))(CONNECT_DATA=
    (SERVICE_NAME=<SERVICE_NAME>)))
    Do I have to configure the SQL Server network utilities?
    I pinged both the servers ,they talk to each other.
    But when I use tnsping ,the client machine (i.e.,the SQL Server
    machine)talks to server(Oracle machine) but the server doesn't
    talk to the client.
    I am definitely not doing something right.
    Asha.

  • Oracle 8 - query builder prob????

    I'm running Oracle v8.17 and I can't find query builder or procedural builder in my Start Menu or in the installed dir. Can anyone tell me the exact path to query builder and procedural builder executables!! Please!!

    Thank u for your reply and I did find enterprise manager. My problem is now I need to specify Management Server in order to log on to Enterprise Manager. I tried putting my computer name but that didn't work. How would I determine my Management Server??

  • Tax query builder with "workflow status" property

    Hi,
    is it possible to create a tax query builder with "workflow status" property? For example: folder A only with documents "Relased", folder B only with document "In progress"?
    In property meta data I saw that there is a property "cm_workflowState", I made it indexable, but it doesn't work....
    thanks,
    Paolo

    Hi,
    Thanks to share your post.
    For the issue, I think it may due to the wrong handling of the encoding type “UTF-8”, please refer to the followed article, they may give you a hand:
    http://blogs.sun.com/shankar/entry/how_to_handle_utf_8.
    http://devlog.info/2008/08/24/php-and-unicode-utf-8/.
    Hope this could help you!
    Leo

  • 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

  • IPhone Ad Hoc - One build for block of UDIDs or one build for each UDID?

    Hello.
    For ad hoc distribution, do I need to create a new unique build for each of the UDIDs from my potential testers? Or just one time for the entire set of UDIDs?
    Please set me straight, I've been searching for this answer, but could not find anything.
    Thank you so much.

    You must add each UDID to your distribution provisioning profile in iTunes Connect. Once you have done that, you can use a single .mobileprovision file and a single binary for all provisioned users. You do not need to build a version for each user.

  • SAP QUERY report for vendor line items

    Hi
    I have created a SAP QUERY report for vendor line items with fields vendor no.,vendor name,amount,company code and period.But there is one line item i donot know from wher system is getting it picked with is not in that vedor account,when i compare with fbl1n.I checked the document number too...the same doc number is twice in my query report.One with correct amount and another with wrong one.How do i chk.Where did i go wrong in creating query.I used logical database KDF.
    Please advise.

    i chked...how do we get the amount displayed in query...it just displays amount no debit credit symbol... i have selected BSEG-DMBTR field but no -/+ sign,how is it done in query,please suggest.

Maybe you are looking for

  • New Install Error on Windows Vista

    On a new install I am getting this error when I try to request license. I am trying to install it locally on a new Windows Vista machine. Server Error in '/B1WebTools' Application. Object reference not set to an instance of an object. Description: An

  • Help with iTunes Compilation folders

    I need help dealing with having too many compilation folders in the compilation folder. I have 83 folders that are in the compilation folder and they are named after the album title. I'm wanting them in the artists respective folders at the root of i

  • FX5600 VTD256 camcorder signal input failure

    I just installed  an FX5600 VTD 256 VGA Card in my new computor with a windows XP operating system.  When I try and feed the output of my Sony VX2000 through the TV-out/Video in connecting cable I get no signal.  I have tried various editing programs

  • Help with AA script.

    I'm hoping someone out there is willing to help me! It's probably very simple for most of you, but I've been banging my head against this and getting nowhere. All I want to do is to create a very simple Auto Attendant script that flows like this: Wec

  • Safari attachments quitting

    Hi I run OS 10.4.7 and Safari 2.0.4. I also have yahoo email account. Several times a week I send emails to various people attaching jpg photos. Two days ago, this has become impossible - when highlighting a particular file to attch, the computer 'th