Group by clause using query builder

Hi,
I have some event pages (pages created using a template called event) which are tagged with event types and I have 5 event types in total. In the event listing page, i want to show the events grouped by event types.
Is there a facility in query builder to use "group by" which returns be results in different buckets?
Is thats not the case, i have to run 1 query per event type which means i have to run 5 queries. (or i get the event type as facets -> get the buckets -> get the predicate for each bucket -> run one query per bucket which again is nothing buket one query per event type). I dont want to do that.  
Hence using the query builder or any other form of querying, is there a way to group the results?
Regards,
yadhu

Perfect... thats answers the query...
Basically the summary is I cannot use aggregate functions like group by. Once i get the search results, i can either use facets, get the bucket predicates and drill down the search OR get all the results, do look up on property (using Node.getProperty) of each node in the result and build my UI based on mere coding. Am I right?

Similar Messages

  • Query for recurring reports using Query Builder in Business objects

    1. How to count webi Recurring reports using query builder in business objects? (Need Query for this)
    2. How to count Crystal Recurring reports using query builder in business objects? (Need Query for this)
    I am able to get summerized recurring reports using Query Builder.
    For Example we have 343 reports which are under recurring (This includes both Webi Reports and Crystal Reports).
    we need to get individually how many webi reports are under Recurring and Crystal reports are under Recurring.

    1. How to count webi Recurring reports using query builder in business objects? (Need Query for this)
    2. How to count Crystal Recurring reports using query builder in business objects? (Need Query for this)
    I am able to get summerized recurring reports using Query Builder.
    For Example we have 343 reports which are under recurring (This includes both Webi Reports and Crystal Reports).
    we need to get individually how many webi reports are under Recurring and Crystal reports are under Recurring.

  • How to use Query Builder in JDeveloper?

    I am not able to use Query Builder with JDeveloper version 11g 2.
    The online documentation about Query Builder:
    http://docs.oracle.com/cd/E35521_01/user.111230/e17455/db_tools.htm#OJDUG2380
    "To use Query Builder:
    Open the SQL Worksheet.
    Right-click and choose Query Builder."
    But when I right-click on the SQL Worksheet, there is no menu item "Query Builder".
    Does the documentation belong to a different version of JDeveloper?
    Edited by: Ralf_user4689599 on 06.05.2013 15:40

    all features of 11.1.2.3.0 are installed.
    It makes no difference wether I start studio developer or database developer role.
    There's no query builder in the context menu of the sql worksheet.

  • Parsing Error when using query builder

    I have a query with a subquery in the WHERE statement witn multiple fields listed in the select statement.
    For example, the subquery starts with "AND (center, jobid) IN SELECT center, jobid FROM ........
    The query runs fine and gives me the correct data
    However when I click on the Query builder option, I receive the following error
    "Text is not a valid, single SELECT statement.
    Parsing error:
    Failed to parse SQL query.
    Invalid Select Statement.
    Unexpected token "from" at line13, pos 1.
    Query Builder Disabled
    I believe this to be a problem with the query builder, Am I correct?

    Query Builder is a visual environment targeted at novice/intermediate users. Some advanced and/or hard to visualize language features are not supported. The improved error messaging coming in 3.1 would indicate this is 'unsupported' rather than 'not a valid, single SELECT statement.' For example, (using scott/tiger):
    Text contains unsupported syntax.
    Parsing error:
    Failed to parse SQL query.
    Invalid SELECT statement.
    Unexpected token "," at line 4, pos 16.
    Query Builder disabled.
    select distinct d.dname
    from dept d, emp e
    where d.deptno = e.deptno
      and (e.deptno, e.job) in
    (select x.deptno, x.job
    from emp x
    where x.deptno > 10
       and x.job NOT IN ('MANAGER', 'PRESIDENT')
    I don't know what your real query is, but refactoring to use join on derived table or table expression (or, as Gary said, separate IN clauses) rather than '(a, b) IN' will allow Query Builder to display it.
    derived table: select distinct d.dname
    from dept d, emp e,
    (select x.deptno, x.job
    from emp x
    where x.deptno > 10
       and x.job NOT IN ('MANAGER', 'PRESIDENT')
    ) filter
    where d.deptno = e.deptno
      and e.deptno = filter.deptno
      and e.job = filter.job
    table expression: with filter as (select x.deptno, x.job
    from emp x
    where x.deptno > 10
       and x.job NOT IN ('MANAGER', 'PRESIDENT')
    select distinct d.dname
    from dept d, emp e, filter
    where d.deptno = e.deptno
      and e.deptno = filter.deptno
      and e.job = filter.jobBrian Jeffries
    SQL Developer Team

  • How to identify recurring instance of a report using Query Builder

    Hi,
    I am having a report scheduled for four different set of  parameters.  I want to identify the instances pertaining to each schedule.  I tried the last successful instance but it gives only the last instance detail.
    Kindly help me
    Thanks and Regards,
    Subbu S

    Hi,
    Use the following query in the query builder
    SELECT
    SI_NAME, SI_SCHEDULEINFO.SI_STARTTIME
    FROM
    CI_INFOOBJECTS
    WHERE
    SI_RECURRING = 1
    SI_NAME: The recurring report name.
    SI_SCHEDULEINFO.SI_STARTTIME:  The date and time the report is scheduled to run next.
    The query above will return all the recurring reports .
    Regards,
    Prithvi
    Edited by: Raj_10 on Sep 14, 2011 1:54 PM

  • How to use Query Builder as a component inside our applications?

    I am very new to Apex, but I loved it until now :)
    After my first experience I am thinking to advice Apex as an Oracle database reporting environment to some of our marketing and sales guys. These guys are familiar to basic SQL and table, index concepts and their need is to create dynamic reports, take their output to excel and email these reports all around the company :)
    My first question is can Apex 3.1 work with 9.2 - 10.1 - 10.2 and 11.1?
    My second question is how can I open the Query Builder inside the Create Region>SQL Report wizard to my users inside a custom user defined form?
    My third question is if the answer of second question is it is not possible, then anyone can advice on alternatives for this kind of a need with Apex?
    My last question is how Apex can handle a distributed database environment, like Java applications can it open several database connections as needed?
    Thank you.

    Hello,
    My first question is can Apex 3.1 work with 9.2 - 10.1 - 10.2 and 11.1?Correct. That's said in the installation guide.
    My second question is how can I open the Query Builder inside the Create Region>SQL Report wizard to my users inside a custom user defined form?This does not yet exist out of the box. You can have a look how Oracle did it and try to mimic it in your own application.
    My third question is if the answer of second question is it is not possible, then anyone can advice on alternatives for this kind of a need with Apex?Import app 4500 in your own workspace. On page 1002 you should find the query builder.
    Again you can't just run this, you would need to make customizations to it. Alternatively you can add just a textarea on a page where you can run SQL statements from. But I guess you want to have the graphical display?
    My last question is how Apex can handle a distributed database environment, like Java applications can it open several database connections as needed?APEX is living in the Oracle database. So everything inside that database you can potentially work with. If you need data from other sources you can use a database link or hytrogenous connectivity. Basically if you can do it from the Oracle database, you can also do it from within APEX.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/

  • Hi, Cant use Query builder in Apps. Because there is no Foreign Keys define

    Hi,
    We Cant use any Query Builder (SqlDeveloper) in Oracle Apps.
    Because there is no Foreign Keys defined on the table except primary key.
    I agree that common colums are there on different table,
    But it's bit difficult to digout for numbers of tables from different modules (schema).
    Do any one have any query which can find common colums from different tables though the tables may or may not be from different Schemas too.
    Thanks in advance.
    Bachan

    >
    Due to performance oracle has not applied constraints
    on tables except Primary Key.
    I find this hard to believe. The most likely reason for this, is to speed up inserts, but thats only applicable if you have lots of inserts at the same time.
    But they have given eTRM to refer the forigen columns
    on different tables.
    Forigen column is just for name shake there is no
    constraint available except Primary key.
    And whenever we have to make query and apply join, we
    have to dig a lot.
    Even we cant use Sqldeveloper Query builder, which is
    a dam good tool for making Joins and query.
    My problem is the Time and effort which we have to
    put for diging tables.
    just want to reduce that with some intleactual
    Query.You will get quicker as you get more experienced. Of course, everytime you have a query to do a specific job you could save it in an appropriately named file and store it in your source control system.
    >
    Can u help me with names of the Tables which store
    information about tables, schema, columns, index, and
    views.select * from dictionary

  • Using Query Builder

    Hi Friends,
    I am having a small issue..
    I want to find out all folder names,report name & category using the Query Builder.
    kindly do the needful.
    I am using BOE: XI R2
    Data Base: Oracle 10
    Regards,
    RAVI

    Hello Ravi,
    You can use SQL statements as: -
    Folders: -
    select * from ci_infoobjects where SI_KIND='Folder'
    Category: -
    select * from ci_infoobjects where SI_KIND='Category'
    Webi Reports: -
    select * from ci_infoobjects where SI_KIND='Webi'
    Thanks,
    Vivek

  • Connection information to use Query Builder

    I am following the Oracle Reports tutorial - how to add data to a report
    http://download-east.oracle.com/docs/cd/B14099_17/bi.1012/b14364/rwtutorial_data.htm#i1012227
    I am at Step 6: Using the Query Builder.
    I already have the HR sample schema in my (9i) database, and have unlocked it.
    But at the prompt for user name and password and db name, I get this message:
    REP 0501 Unable to connect to the specified database
    ORA 12154 TNS: could not resolve the connect identifier specified.
    For each field I have this information:
    User name : hr
    Password ; hr
    Database : unidad
    This is the same information I use to connect to my database. What am I doing wrong?
    Many thanks.
    DA

    Hello again.
    The entry in the oracle92\network\admin file is
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    UNIDAD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 2WIRE777)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = unidad.netcones.com)
    While the entry in the \DevSuiteHome_1\NETWORK is
    # tnsnames.ora Network Configuration File: C:\DevSuiteHome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 2WIRE777)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PLSExtProc)
    Do you suggest I change SERVICE NAME, from PLSExtProc to unidad.netcones.com ??
    Thank you again.
    DA

  • Cannot use Query Builder in TableAdapter Configuration Wizard

    I am using Visual Studio 2013 and MySQL NET adapter 6.8.3. I have created a WinForms app in VB. I am trying to create a dataset with a table from the MySQL database (named "propworx"). I do the following:
    1. I create a new DataSet.
    2. I edit the DataSet with the DataSet Designer.
    3. I right-click on ANY TableAdapter, and I click "Configure".
    4. I click on "Query Builder".
    I get the following error message:
        The query builder has failed.
         Authentication to host '' for user '' using method 'mysql_native_password' failed with message: Access denied for user
    ''@'Fabs-Work' (using password: NO)
    (In the above, "Fabs-Work" is my computer name.)
    Looking at the error message, I immediately see that the host and user information appears to be missing. But it is in my app.config file:
    <connectionStrings>
    <add name="PropWorx.My.MySettings.PropWorxConnectionString" connectionString="server=localhost;user id=propworx;password=********;persistsecurityinfo=True;database=propworx" providerName="MySql.Data.MySqlClient" />
    </connectionStrings>
    (I have blanked out the password in the above post, but I have indeed double checked it and it is correct).
    The database is hosted locally. I have created a database user in MySQL called "propworx" and have given it full rights.
    Any ideas why Visual Studio Dataset Designer is not reading the info from my settings file?
    Fabricio Rodriguez - Pretoria, South Africa

    Hi Fabs,
    According to your description, this issue is related to MYSQL. I am afraid this is out of our support. I would suggest that you could ask this issue in their official forum. Here is the link,
    http://forums.mysql.com/
    Thanks for your understanding.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to use Query Builder in Oracle10g

    Since I'm new to Oracle , thus I'm facing some problem in some portions. When I went through the Query Builder option, actually I was not able to build the query as some of the features present in it were not clear to me like the "Condition" part and if I need to perform some join in it, how would that part work on it.
    Please reply and help me out. Thanks.
    Regards,
    Praveen Rai

    Query Builder is level 8.0, it's part of desupported developer 6i. Installation media has an online manual, which answers your questions. You should consider an alternative like SQLDeveloper. Query Builder may still work with 10g, but no guarantee.
    Werner

  • Java error when using Query Builder

    Hi Everyone,
    I'm new to Publisher and I have an issue when I build a SQL Query Data Set. I have tried both the Default and Oracle OBIEE data sources. I am able to select my fields, etc but when I got to test results I get the following error:
    java.io.IOException: prepare query failed[nQSError: 27002] Near <->: Syntax error [nQSError: 26012]
    I've looked at the sql and it looks fine to me. I found one posting on here about the jdbc connection but I tested that under the Admin page and the OBIEE jdbc data source tests just fine.
    Any idea what I'm missing?
    Thanks
    Richard

    There is apparently no solution to this issue. Worse, it exists still in 10gR2.
    I suspect the Oracle*Reports developers do not use tables having constraints and that they do not read the many reports of it on this forum.

  • Using presentation variables selected in dashboard prompt in query builder

    In dashboard prompt I have made four dropdowns(have four presentation variables) and based on these values selected,can the Query Builder generate dynamic reports based on the presentation variables selected?
    I will provide the link(i.e Link of BI publisher where I stored the report) displayed to the user based on Four presentation variables.
    If we click on that link can we use the presentation variables in where clause of Query Builder in BI Publisher?
    Please help me out
    Thanks in Advance

    - OK. In the second prompt, instead of setting Default to SQL Results, set it to Specific Value.
    - Then insert '{pres_var}' in the window. I got it to work this way.
    - It supplied the PV as the default in the second prompt after hitting "Go" on the first prompt.
    Hi, thanks for your suggestion but I don't need to have the value of the presentation variable itself as the prompt default. The variable is a filter for a specific SQL clause and the default is the result of this SQL.
    Cheers
    DrPlexi

  • ORA-00907: missing right parenthesis when using group by clause with xmlagg

    I have the following query and I am getting ORA 00907 Error when I am using group by clause with the xmlagg function.
    select xmlelement("Mitigation",
                    xmlelement("m_szMethodName",tm.DisplayName),
                    xmlelement("SubstanceInterferenceProtocolList",
                                (select xmlagg(xmlelement("MitigationProtocol",
                                        xmlelement("m_szMethodName",tm.DisplayName),
                                        xmlelement("m_szInterferenceProtocolName",tmp.protocol_name),
                                        xmlelement("m_szInterferenceSubstance",tmp.intf_mtrl_prod_code),
                                        xmlelement("m_ProtocolParameters",
                                            xmlelement("m_szProtocolName",tmp.protocol_name),
                                                xmlelement("m_Consumables",
                                                    xmlelement("Consumable",
                                                        xmlelement("m_szConsumId", xrl.rgnt_pack_name),
                                                        xmlelement("m_szProductCode",xrl.pack_prod_code),
                                                        xmlelement("m_nVolume",tmp.fluid_vol),
                                                        xmlelement("m_szProtocolStep",xps.protocol_step_name))),
                                                    xmlelement("m_ProtParamList",
                                                        xmlagg(
                                                        xmlelement("ParameterValues",
                                                            xmlelement("m_szProtocolName",tmp.protocol_name),
                                                            xmlelement("m_Time",xpsd.parameter_ntime_value))
                                                        group by tmp.ccd_test_id,tmp.intf_mtrl_prod_code)
                    order by tmp.ccd_test_id, tmp.intf_mtrl_prod_code, xps.protocol_step_intprotocolstep )
                    from XPR_tdef_mitigation_protocol tmp, xp_reagentlist xrl,
                    xpr_protocol_settings xps, xpr_protocol_settings_default xpsd
                    where tmp.ccd_test_id = tm.ccd_test_id
                    and tmp.ccd_test_id = xrl.ccd_test_id
                    and tmp.pack_prod_code = xrl.pack_prod_code
                    and tmp.intf_type = 1
                    and xps.protocol_name = xpsd.protocol_name
                    and xps.protocol_step_name = xpsd.protocol_step_name
                    and xps.ps_action_parameterlist = xpsd.ps_action_parameterlist
                    and xps.protocol_name =  tmp.PROTOCOL_NAME
    from XPtoXPRTdef_defn_mapping tm
    where tm.DisplayName = 'SYPH'If I remove the xmlagg clause along with the group by clause, the query runs fine and give me the output.
    But in that XML format of the output is incorrect for my application.
    Could someone help here?

    Hi,
    userAtoZ wrote:
    I have the following query and I am getting ORA 00907 Error when I am using group by clause with the xmlagg function.
    ... xmlagg(
    xmlelement("ParameterValues",
    xmlelement("m_szProtocolName",tmp.protocol_name),
    xmlelement("m_Time",xpsd.parameter_ntime_value))
    group by tmp.ccd_test_id,tmp.intf_mtrl_prod_code)Please don't post unformatted code. When posting any formatted text on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    If the code above were formatted well, so that you could match each '(' with its closing ')', it would look something like this:... xmlagg ( xmlelement ( "ParameterValues"
                        , xmlelement ( "m_szProtocolName"
                                       , tmp.protocol_name
                        , xmlelement ( "m_Time"
                                       , xpsd.parameter_ntime_value
    group by tmp.ccd_test_id
                        ,     tmp.intf_mtrl_prod_code
    This is exactly what you posted, only the whitespace has been changed.
    This makes it clear that the GROUP BY is inside the parentheses with the argument to XMLAGG.  You can have an ORDER BY clause there, but not a GROUP BY clause.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Query Builder won't apply chosen date to the where clause

    Does anybody know why when I chose a date field, in the where clause, when using Query Builder, it won't actually write the chosen date to the actual query?
    If I select the "View Query" tab, no date shows up. Also if I press the "Run Report" button in the "View Result" tab, I get this error:
    "An error was encountered performing requested operation: ORA-00936: missing expression"
    This is because actual date data is missing.
    After I hit the "Apply" button, I have to manually type the date data.
    I thought this was a bug of the previous version, but I just installed version 1.5.4 and I have no different result.
    Thanks.

    I just wanted to add my name to the list of people having this issue.
    Oracle Techies, please help.

Maybe you are looking for

  • Best way to handle gifs in an app

    Hello, I have been playing around with project siena for a week or so now, and I am very impressed with its capabilities. I have a requirement to display a gif image on an app, this gif is about 5 MB in size and a new one is uploaded daily so I canno

  • Transport Request with different User Id

    Dear Friends, Suppose If I am using one user Id for all my customizing settings. If I change the User ID & do the changes in the existing customizing( which were done using previous user id) will it ask for Transport Request. Many Thanks PK

  • B570 OneKey Recovery to new SSD

    Hi all, I have a B570 laptop purchased in 2012; I created the system recovery disks on first boot up which fitted on 2 DVD's. I have just swapped my WD 750GB 5400RPM HDD for a Samsung 850 EVO 500GB SSD. I wanted to run a fresh install of windows 7 us

  • How to set timeout

    hi all, i have a method that should be executed in a certain time... void method(String param){ return result; // if result is not there after 2 minutes, throw an exception ?? how can i do that? regards

  • Connection dialog between 10.5.5 client logging into a 10.5.5 very slow

    when attempting to connect via afp to the local file server, connection authentication dialog seems very slow (about 30 seconds) using a 10.4.x client to connect to the server everything is immediate using a 10.5.x client to connect to another 10.5.x