Is is possible to run aggregate queries (cf SQL's "group by") on a CQ5 repository?

I am trying to produce a report of how many images were added to our crx repository (under cq 5.3) in the last year, by the directory to which they were added.
In SQL I'd do something like
   SELECT COUNT(*) FROM image WHERE image.date >= '2012-01-01' GROUP BY image.directory
However, CQ5's query builder seems to only allow selection of result items, no aggregate information like counts / "group by" - or if it does support that, I can't find documentation on how to use it.
Is this possible, and if so how? If not, is there another way of extracting this information? (I could write a script to submit a separate query for each directory and just return the number of results for each one, but that seems a bit laborious for what is a fairly straightforward requirement.) Apologies if I'm missing something obvious!
Thanks,
Nick

There is no count(*) or group by selector in JCR SQL [1], XPath [2] or
JCR-SQL2/AQM [3].

Similar Messages

  • Running existing queries in sql developer-new user

    I am trying to execute some of my existing queries I created in TOAD but when I open my current existing files it does not give me the option to execute them. How can I get my existing files to execute so that I can get a data return?

    See:
    Re: Nice App

  • Running Stacked Queries in Oracle SQL Developer

    Is it possible to run stacked queries in Oracle SQL Developer???
    Something like this...
    SELECT *
    FROM TABLE_1
    SELECT *
    FROM TABLE_2
    SELECT *
    FROM TABLE_3
    And give my 3 different result sets in my Query Result window
    I tried "BEGIN" and "END" and Oracle SQL Developer did not seem to like it.
    Can someone let me know if this is possible and what the syntax might be???
    Thanks in advance for your review and am hopeful for a reply.
    PSULionRP

    Wrong forum!
    Please post this in the sql developer forum.
    SQL Developer
    You can run multiple queries exactly the way you posted them but you need to use F5 - the run script toolbar button.

  • Run os commands with sql

    dear all,
    is it possible to run os commands with sql commands as follows :
    SQL> ALTER system kill session '1764,60569'; ! kill -9 12151
    2 /
    ALTER system kill session '1764,60569'; ! kill -9 12151
    ERROR at line 1:
    ORA-00911: invalid character
    kai
    os version : solaris 5.10.. db : 10.2.0.4.0

    Kais,
    What exact error are you getting running this script and what's OS (is it linux RH?? If you can post errors on running this script, that will be helpful. I tested on both cygwin (my desktop) and liunx box but you can change as needed) and to kill process from script you can use
    echo `kill -9 pid`
    Hope this helps
    #!/bin/bash
    typeset username=$1
    function readSqlstmt {
    typeset stmt=$1
    echo "
    set feedback off
    set verify off
    set heading off
    set pagesize 0
    whenever sqlerror exit 1
    whenever oserror exit 2
    $stmt;
    exit
    " | sqlplus -S '/as sysdba >> test.log
    function killpid {
    killpidsql=killpid.sql
    sqlplus -s '/as sysdba' << ENDOFSQL >> test.log
    whenever sqlerror exit 1
    whenever oserror exit 2
    SET pagesize 0
    SET verify off
    SET feedback off
    SPOOL ${killpidsql}
    SELECT 'ALTER system kill session ''' || s.sid || ',' || s.serial# || ''';'
    FROM v\$session s, v\$process p
    WHERE s.paddr = p.addr AND s.status = 'INACTIVE';
    SPOOL OFF
    @${killpidsql}
    ENDOFSQL
    killpid
    readSqlstmt "SELECT p.spid FROM v\$session s, v\$process p WHERE s.paddr = p.addr AND s.status = 'INACTIVE'" | while read u
    do
         #echo "kill -9" $u >> test.log
         echo "Killing inactive oracle process..."
    echo `kill -9 $u`
    done

  • Displaying messages while running BEx queries.

    Hi Experts,
    Can any one explain me is there any possibility to display some popup messages while running BEx queries?
    Regards,
    Anusha

    Hi there,
    You can do taht with user exit variables with the code something like this:
      WHEN 'YOUR_VARIABLE'.
        if i_step = 2.
        LOOP AT eto_charsel INTO ln_charsel.
    *some validation of your own
          if ln_charsel-low NE '1'.
    *call function to send a message, in this case, an error message
             CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
               EXPORTING
                 i_class  = 'ERROR!'
                 i_type   = 'E'
                 i_number = '000'
                 i_msgv1  = 'Please connect again and'
                 i_msgv2  = 'use the Revision Layout'.
                 RAISE no_processing.
          endif.
        ENDLOOP.
        endif.
    Diogo.

  • Is it possible to run a command when a monitor goes to a healthy state?

     
    Hi,  I'm using SCOM 2007R2
    Is it possible to run a command/script when a web application Monitor changes to a healthy state?
    I have a web application monitor that checks four different websites from our proxy servers.  on the aggregate rollup of all four sites I have a health rollup policy of 'Best state' meaning
    that the monitor will only go critical if all four sites are unreachable. If that happens I have a Diagnostic task that runs to Stop the w3svc service.
    This stops the proxy server serving ‘Page cannot be displayed’ content to the users within the company.
    What I would like to do is start IIS automatically when the web application monitor goes to a healthy state.
    I’m guessing I’m going to need a script that perhaps pings the sites every few minutes then starts the w3svc service if it gets a result.

    Hi,
    I recommend you touch the Orchestrator, Orchestrator can integrate
    SCOM.
    Use Orchestrator to design a Runbook for your task. When the state of a web application Monitor changes to healthy, then run a command/script.
    System Center 2012 Orchestrator.
    Orchestrator is a workflow management solution for the data center. Orchestrator lets you automate the creation, monitoring, and deployment of resources in your environment.
    For more information, please review the link below:
    System Center Integration Pack for System Center Operations Manager 2007 R2
    http://technet.microsoft.com/en-us/library/hh531770.aspx
    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.

  • Roll-up not possible; no filled aggregates available

    hi sapgurus,
            I am facing the following while running my process chains:
    Roll-up not possible; no filled aggregates available
    Rollup is ended with error;
    My problem i don't have sufficient authorization to cube to do the manual roll
    Please help me,and how to proceed with this error.

    ashwin,
      Thanks for your reply.
      Though i am not able to see the data in cube,i am able to see the aggregates in the cube by clicking on aggregates button on right side of the cube.
    I observed that button "filled/switched off" is red should i activate them .How to do that?.
    Please help me with this?.
    thanks in advance.
    Message was edited by:
            NRUPAL CHOWDARY

  • Precision Changes when running parallel queries in Oracle?

    I am trying to speed up our SQL queries and database draws by running parallel queries. However, we are noticing a slight difference in one of our queries. We have identified two possible reasons. One of those reasons is parallel queries for some reason have either less or more precision than what we were doing.
    Has this ever been reported before? Is it even possible? Thanks for any help.

    One of those reasons is parallel queries for some reason have either less or more precision than what we were doing.What do you mean? Show us an example of that happening and exactly what you mean.

  • Is it possible to fire DDL queries from within a trigger?

    Hi,
    In Oracle 8.0.5, Is it possible to fire DDL queries from within a trigger?
    e.g. when no. of rows is multiple of 1000, I wish to call a procedure which
    analyzes the table and finds the size of the table. I am getting :
    "ORA-04092: cannot COMMIT in a trigger" error message.
    Regards
    Sanchayan

    One way around this is to use the AUTONOMOUS_TRANSACTION pragma, but I think that was introduced in 8i. Check your docs. Another way is to set up a procedure to do the ANALYZE and in your trigger submit a job using DBMS_JOB to run that procedure.
    Anyway, the second option is best because you really don't want to impose the overhead of running an ANALYZE onto a DML transaction.
    You are also going to run into the mutating table problem: you can't find out how big the table is, because you can't run queries against the table from within a trigger. You could use DATE_LAST_ANALYZED from USER_TAB_COLUMNS, but really you should just schedule jobs to run ANALAYZE at regular intervals - once a day, once a week, once a month, depending on the volatility and usage of any given table.
    Cheers, APC

  • Will it be possible to run several jobs in background at the same time?

    Hi!
    The new release looks promising. Look forward to hear more in Birmingham.
    Just now we have a problem. It have to do with functionality In Toad compared to SQL Developer.
    Will it be possible to run several jobs in background at the same time. Toad allows that.
    If yes: How can we make that happen?

    "Jobs" are always background.
    But I take you mean queries. Yes, since v1.5.x you can open an Unshared SQL Worksheet (ctrl-shift-n or the toolbar button).
    Have fun,
    K.

  • Is it possible to run sub vi and main vi at same time from startup?

    Is it possible to run both my main vi and my two sub vi`s from startup, all of them continuously? I have to sub vi`s that are supposed to take in measurements from two different instruments continuously. I manage to make a program where I can open up and close the sub vi`s, but when my sub vi`s are closed, nothing is happening in them...and they start to run again when I open them...and I have to close them if my main VI is supposed to run. So the data in the chart is only from the periodes when the sub vi has been open.
    Thanks in advance for your help!

    I will send my labview programs. "Hovedprogram" is my main vi, "front" and "front 2" is my sub vi`s. I am also using global variables. I have already searched the discussion forum trying to find an answer to my problem, but I haven`t quite managed yet...
    My sub vi`s are not connected to any instrument now, but I have inserted a sinewave-generator and a chart in "front"(my sub vi) so I am able to see that the sub vi actually stop running when i close the window.
    Attachments:
    front2.vi ‏17 KB
    Hovedprogram.vi ‏42 KB
    front.vi ‏69 KB

  • Is it possible to run the Classic Environment INSIDE Rosetta on a MacBook Pro (Early 2008) with Leopard?

    Hi there,
    Rosetta works up until Snow Leopard. The Classic Environment works up until a late version of Tiger. Rosetta makes apps. built for PowerPC Macs work. The Classic Environment make apps. for Mac OS 9 work on Mac OS X for PowerPC Macs.
    Would it consequently be possible to run the Classic Environment INSIDE Rosetta?
    I have read https://discussions.apple.com/docs/DOC-2292, but I am still unconvinced unless there is a flaw to my logic. At any rate, I subscribe to the Churchillian adage of never giving in unless the forces of common sense and doctrine dictate otherwise.
    If it won't work, then why?
    Best Regards,
    Stefan

    Hi there, Klaus1, BDAqua and a brody,
    Thank you ever so much for your kind replies! (I tried giving you the 10 pts. of 'Correct Answers' to each of you, but unfortunately it was only possible for Klaus1, so the points were distributed between him and BDAqua even though you were all helpful!)
    My next question will naturally be: Is SheepShaver legal? My Google search didn't yield any conslusive proof that it was, nor any that it wasn't, but as the E-Maculation web page seemed quite official and above board I would assume that it is.
    The next logical step would be to ask whether it's safe for both HW and SW to run SheepShaver. HW, it appears, is very rarely, if ever, affected by SW settings, so I would assume that hardwarewise, I'm good to go. Could it ruin the kernel of Mac OS X's Unix-based operating system?
    Kind Regards,
    Stefan

  • Is it possible to run an application from a user or container login script?

    Is it possible to run an application from a user login script or a container login script?
    A "Force Run" application object works fine if the user's workstation is setup to auto-load "Application Window" or "Application Explorer" but in this case I'd like to run an application when someone does a manual login (ie. they right-click red "N" and choose "Novell Login...")
    Using a User Package's "Scheduled Action Policy" and the Event=Login also does not work when a user logs in manually. This type of Event seems to only apply when the user first logs into the workstation, not at a manual login.
    Thanks,
    Marc

    > Is it possible to run an application from a user login script or a
    container login script?
    Yes, see the documentation:
    http://www.novell.com/documentation/...a/a7q6999.html
    Regards
    Rolf Lidvall
    Swedish Radio (Ltd)

  • Is it possible to run a java program without using the command prompt?

    Hi,
    I was wondering whether it is possible to run a Java program (not an applet) without using a command line in the command prompt?
    Basically I want to run a program that will be continually running in the background and hence I don't want to have a command prompt screen loaded up as well - I just want the program to be running in the task bar.
    I know how to run the program in the task bar - but I still need to launch the program from the command prompt - is there anyway I can get a program running without having to start it from the command prompt?
    Cheers

    Or create a desktop shortcut (in Windows) or an application launcher ( in Linux GUI).

  • Is it possible to run two different versions of Apple operating system (for ex. 10.6.8 and 10.9) on a MacBook Pro, either on the same disk or from an external hard disk? If so, where would I find the details?

    Is it possible to run two different versions of Apple operating system (for ex. 10.6.8 and 10.9) on a MacBook Pro, either on the same disk or from an external hard disk? If so, where would I find the details? (In order to be able to use the older applications no longer supported in 10.9)

    If you want to add a second partition to the internal drive (in Disk Utility, select the drive, then open the partition tab and just click the + button), you should first be sure that you will have enough room to accommodate whatever the second volume will be. I am currently doing this for Snow and Mountain Lion.
    To get to whatever volume is not the startup disk, restart and hold down option/alt at the chime, which will bring up a selection of the two volumes. Use the left or right arrow keys to select it and then hit enter/return.

Maybe you are looking for

  • Lync 2013 Android Client - Intermittently unable to join conference

    Hi I've just finished installing Lync 2013 on our network (single Front End, Single Edge, Reverse Proxy Server and Office Web Apps Server). Everything works fine currently, with one exception: When a user tries to join a meeting from the Lync 2013 cl

  • Microphone cuts out

    My microphone on my G72-C55DX cuts out when I try to have a conversation with someone on skype. Also when I play back a recording it skips. I never had this problem before, but just recently it has been happening. I've only had my laptop for a few mo

  • Tried to open. It crashes. I have a MAC with Yosemite.

    Installed product - with license. Tried to open. It crashes. I have a MAC with Yosemite. Thoughts? Adobe "help" website is useless.

  • Moving Publisher database to 2008R2 but subscriber 2005 will remain same. How to reconfigure this?

    We are planning to upgrade(not in place, moving to a new machine) the publisher(2005 EE) to 2008R2 EE but the subscriber(2005 EE) will be the same. Replication Type: Transactional replication Number of replicated databases: 1 Existing SQL Server 2005

  • Initial video/voice call always fails

    Hi,  Every time I intiate either video or voice call, I keep getting "calling" signal with no response. During that time I can't disconnect and forced to wait for applicaiton to disconnect call. Other party can't answer it. It also applies when I cal