How to group: groups within group

Hi. I am resubmitting this question with some changes. Is it possible to group some values and then use those values to group by another group value? For exp:
Top level group is Month,i-e Jan, Feb, March etc
Next level group is Status,e.g OPEN, CLOSE
Third level group is Full_Name
Tables and Fields:
TableA:
Tkt_DateTime
Tkt_Status (open /closed )
Tkt_Created_By (FK)
Count(tkt_created_by) gives count of tickets open or closed
TableB:
Full_Name
Join:
TableA.Tkt_Created_By=TableB.Full_Name
Is it possible to do this all in a single Select statement?

Simply state the order in the group clause, separating each sub-group with a comma
e.g.
group by to_char(a.Tkt_DateTime, 'Mon'),
a.Tkt_Status,
b.Full_Name

Similar Messages

  • How to group photos in folders, in the main photos app in my iphone4 ?

    How to group photos in folders, in the main photos app in my iphone4 ?

    You can update your iPhone to iOS 5, in iOS 5, it will allow you to create albums in your photo app and it also allows you to move the photos from album to another album

  • How to group a report by formula field.

    Hi,
    I need to create a report based on the following report:
    http://s464.photobucket.com/albums/rr8/einas121809/
    This new report should be grouped by days and status. Then, each group should display the details of each record such as Report No, Open Date , Due Date and Summary.
    It is not a problem to display the report details, but I need to know how to group them since it involve calculation.
    Thank you in advance,
    Regards,
    einas.

    Hello,
    Right what you want to do is to get a crosstab which can be found in your toolbar or under Insert menu Insert --->Crosstab.
    You might need to use a working day formula something like this
    WhileReadingRecords;
    Local DateVar Start := {StartDate};   // place your Starting Date here
    Local DateVar End := {EndDate};  // place your Ending Date here
    Local NumberVar Weeks;
    Local NumberVar Days;
    Local Numbervar Hol;
    DateVar Array Holidays;
    Weeks:= (Truncate (End - dayofWeek(End) + 1
    - (Start - dayofWeek(Start) + 1)) /7 ) * 5;
    Days := DayOfWeek(End) - DayOfWeek(Start) + 1 +
    (if DayOfWeek(Start) = 1 then -1 else 0)  +
    (if DayOfWeek(End) = 7 then -1 else 0);  
    Local NumberVar i;
    For i := 1 to Count (Holidays)
    do (if DayOfWeek ( Holidays<i> ) in 2 to 6 and
         Holidays<i> in start to end then Hol:=Hol+1 );
    Weeks + Days - Hol
    If you need to calculate bank holidays then you have to create an array like this
    //Holiday Listing formula to go into the report header of the report.
    BeforeReadingRecords;
    DateVar Array Holidays := [
    Date (2003,12,25),
    Date (2003,12,31)
    0
    The workingdays formula needs to go into the Row and then distinct Count your orders. That should give you how many orders took x amount of days.
    Then you need to further develop your formula so that it shows <20 days, more than 20 days etc.
    Create something like this first and then ask further questions if you are stuck.
    Hope this helps
    Regards
    jehanzeb

  • Can't understand how this group by clause works

    The Schema is as below: (http://www.psoug.org/reference/rollup.html)
    CREATE TABLE grp_rep (
    person_id NUMBER(3),
    division VARCHAR2(3),
    commission NUMBER(5));
    INSERT INTO grp_rep VALUES (1,'SAM',1000);
    INSERT INTO grp_rep VALUES (2,'EUR',1200);
    INSERT INTO grp_rep VALUES (1,'EUR',1450);
    INSERT INTO grp_rep VALUES (1,'EUR',700);
    INSERT INTO grp_rep VALUES (2,'SEA',1000);
    INSERT INTO grp_rep VALUES (2,'SEA',2000);
    INSERT INTO grp_rep VALUES (1,'EUR',800);
    COMMIT;
    Query1:
    SELECT person_id, division, SUM(commission)
    FROM grp_rep
    GROUP BY person_id, ROLLUP (person_id, division);
    Query2:
    SELECT person_id, division, SUM(commission)
    FROM grp_rep
    GROUP BY division, ROLLUP (person_id, division);
    The results of query1 are okay. It has results from rollup and group by person_id.
    But, in Query2 results of rollup are missing and results of group by division is there.
    Anyone can explain how the group by clause works when there are multiple columns involving CUBE, ROLLUP and simple column names?
    Regards.

    Thank you shoblock!
    but, What i m really looking for is,
    How group by clause works when i add regular column along with RollUp in group by clause?
    I have understood simple group by clause like
    ...group by column1,column2,column3....
    n I also know simple rollup clauses like
    ...group by rollup(column1,column2,column3,...)
    But my Problem is how does this work:
    ...group by column2,rollup(column1,column2,...)
    ...group by column1,rollup(column1,column2,...)
    See below Results:
    Query1:
    SELECT person_id, division, SUM(commission)
    FROM grp_rep
    GROUP BY person_id,ROLLUP ( person_id, division );
    Result:
    PERSON_ID DIVISION SUM(COMMISSION)
         1      EUR      2950
         1     SAM      1000
         2      EUR      1200
         2      SEA      3000
         1           3950
         2           4200
         1           3950
         2           4200
    SELECT person_id, division, SUM(commission)
    FROM grp_rep
    GROUP BY division,ROLLUP ( person_id, division );
    Query2:
    SELECT person_id, division, SUM(commission)
    FROM grp_rep
    GROUP BY division,ROLLUP ( person_id, division );
    Result:
    PERSON_ID DIVISION SUM(COMMISSION)
    1 EUR 2950
    2 EUR 1200
         1 SAM      1000
    2 SEA 3000
    1 EUR 2950
    2 EUR 1200
    1 SAM 1000
    2 SEA 3000
    EUR 4150
    SAM 1000
    SEA 3000
    guys, help me make understand above results!
    Regards.

  • How to group PRs in SNP

    Hi Experts,
    1.How to Group PRs considering the future PRs  to make a container load of single product of a single vendor .
    2. How to group the PR's of different products to make a container load of a single vendor .
    Like in TLB we club STR's to STO to make a full container load ,Can we also use TLB which should use the results of SNP Heu or Opt or CTM i.e PR's to vendor , and Club then using the TLB profile.
    Pls Confirm .
    Thanks.
    Ballack

    Hi Ballak,
    Yes you can use TLB functionality for heuristic results. Please go through the following Note.
    Note: 514947
    Regards,
    Kishore Reddy.

  • How to group or print index of Event Key Photos?

    I am making some backup dvds of my library for off site storage. I would like to make an index print of the event key photos but can not figure out how to group them. Can you make a smart album (clearly iphoto has them tagged in some way)? Is there just an option for printing them that I can't find? There must be a more elegant solution than opening each event and copying the key photo to an album...

    Can you make a smart album (clearly iphoto has them tagged in some way)? Is there just an option for printing them that I can't find?
    No and No I'm afraid.
    IPhoto menu -> Provide iPhoto Feedback for feature requests.
    There must be a more elegant solution than opening each event and copying the key photo to an album...
    Either that or tag them with a keyword, flag them or rate them and use that as the basis of a smart album.
    Regards
    TD

  • How to group together contacts?

    Hi there, I would like to know how to group people/phone numbers together under one category. For instance I have a ton of people from work I need to put into my phone but want to put them and their numbers all under one category like "Work" and be able to open it up and theres all my contacts from work. If anyone can help me I would appreciate it. I did look for answers but I kept getting things about grouping emails and thats not what I'm looking for,

    You can create groups of contacts on your computer, then sync them on your iPhone. But you will not be able to select a group as text recipient. As of today, you need an application for that. I have create a free application, Easy Group, to handle this missing feature.
    http://itunes.apple.com/fr/app/easy-group/id461469079?mt=8
    Rémi
    Note: I may receive some form of compensation, financial or otherwise,from my recommendation or link.

  • How to group from two fields?

    Afternoon all,
    Any ideas how to group a report by using two fields in one formula?
    I have two fields in a table
    1: Stock_Code
    2: Misc_Code
    I need to group my report by Stock and Misc code combined. How would I be able to do this by using formula?
    Regards
    Jehanzeb

    See I tried that already pandabear however for some reason it doesn't bring the results from both fields. It is only bringing results from one field.
    The report criteria is
    {lab_credits.date_created} in date(2007,01,01) to date(2007,12,31) and
    {lab_reasons.reason_code}={?Reason_Code}
    the formula I used initially was
    {lab_credits2.stock_code}+{lab_credits2.misc_code}
    but then tried
    {lab_credits2.stock_code}+ " " +{lab_credits2.misc_code}
    however both didn't seem to work under the above conditions.
    The output should be
    5-760
    7-240
    7-250
    7-821
    AR
    CARR
    GLAZE
    TINT
    U-113
    U-114
    Where 5-760 and U-113 data is coming from stock_code field and AR to TINT is coming from Misc_code field.
    The output is ignoring the Misc field values under the given criteria.
    Regards
    Jehanzeb

  • How to group arts into a group

    I look in AIArtSuite but could not figure out how to group multiple arts into a group.
    Please help.

    Thanks very much, this is how I ended up doing:
    There are 2 arts to be grouped: image (kPlacedArt) and path (kPathArt).
    I created a new art of type kGroupArt and place the other two inside it.
        sAIArt->NewArt(kGroupArt, kPlaceAboveAll, nil, &group);
        sAIArt->ReorderArt(image, kPlaceInsideOnTop, group);
        sAIArt->ReorderArt(path, kPlaceInsideOnTop, group);

  • How to group all the reports and execute like single application ?

    Hi,
    I am trying to develop some reports in Crystal Reports XIR2 , here i have Design and Preview options that is for every report i should see , how to group all the reports and execute like single application?
    any option is there to run the report
    i mean is it possible to have a home page from there have links to each report and when i click on the link corresponding report should be shown , if it is possible , How?
    Regards,
    kathyaini

    You will want to look into Crystal Reports Server, it does exactly what you describe and more:
    http://www.businessobjects.com/product/catalog/crystalreports_server/
    Download a trial of CR Server here:
    http://www.businessobjects.com/product/freetrials.asp

  • How to "group by" and display  in separated table views

    What cloud be the approach to the following scenario:
    1) A RFC returns a list of lot of invoices.
    2 How to group by "customer code" and display in separated table views  for each customer "group of invoices" ?
    Is there a way to do this using VC or only using WebDynpro ?
    thanks

    Issac,
    you dont hv to do this using dynpro. you can achieve this in vc by using the 'Filter' operator. from the output port of the rfc, feed the results to multiple filters. hv one filter for each segregation (for eg for each customer code). Then feed these filtered entries to the table views.
    prachi

  • How to group table rows using GroupedColumn?

    Hi all,
    i know by binding the grouping value to a context, it can merge rows into one. but this only works if the two rows are adjacent.
    if the context looks like this:
    value 1
    value 2
    value 1
    value 2
    it can not group them together
    how to group them together and merge the rows?
    thanks.

    Hi erv,
    U need to use the TableSorter class for this.
    You can download the TableSorter.java class from the tutorial Working with Tables in Web Dynpro.
    Here you can select the project A) Creating Tables and download the Ready-to-use project. The lick to download project is:
    [/docs/DOC-8061#46|/docs/DOC-8061#46]
    Once you have downloaded the tutorial, you can find the TableSorter.java class in this path
    TutWD_Table/src/packages/com/sap/tc/webdynpro/tests/utils
    For more information refer to this blog:
    [Enhanced Web Dynpro Java TableSorter for SAP NetWeaver 04s|/docs/DOC-8061#46]
    Regards,
    Sayan Ghosh

  • How many group policies can be applied to an OU?

    Hi,
    I just want to know about how many group policies can be applied to an OU?
    I have 7 different GPOs but only 2 or 3 are applied. How can I troubleshoot this problem?
    reg
    A

    GPOs are actually applied by users or computers. Each object can process 999 GPOs. If you have GPOs not being applied, it most likely is a scoping issue.
    Check out this guide and let me know what you find:
    http://deployhappiness.com/top-10-ways-to-troubleshoot-group-policy/
    If my answer helped you, check out my blog:
    DeployHappiness. Subscribe by
    RSS or
    email. 

  • How to group transactions in blue area of Web Interface

    Hello,
    I been trying to figure out how to group transactions in the blue area of the Web Interface similar to 'Go Shopping'.  I tried to search the forum and did not find ana answer.  Is the grouping done by security roles?
    Please let me know.
    Thank you in advance for any assistance.

    Hi,
      In trascn PFCG,under MENU tab,you can change the grouping of transactions as well as  text for the MENU.
    BR,
    Disha.
    Pls reward points for useful answers.

  • How works Group System de-provisioning ?

    Hi all,
    I'm runing SAP IDM 7.1 SP4 last patch.
    Here is my pain :
    When a user has 2 privileges from the same ABAP repository (for example: SAP_ALL and SAP_NEW), and when those privileges are removed from the identity assignments manually (using a web interface Add / Remove privilege), the DeprovisionABAP task is launch.
    Priv are not going through PendingValues, so DeprovisionABAP task is launch from repository deprovision task definition.
    And because those privileges were the last ones, 2 Delete ABAP user task are launch as well.
    The first on finish OK, but the second one failed because the user as already been delete by the 1st task.
    When I look into the RemoveFlagRunChildren, it looks like when priv are manually removed ("#" into MXP_AUDIT table) from an entrytype "MX_PERSON" nothing is done.
    Can you please let me know how works Group system de-provision because I have a error each time that all privileges from the same repository are removed from a MX_PERSON.
    Thanks for your help,
    Benjamin

    Try the BExApplication object, .ComConnection.Language property. BTW, there are a lot of useful things there. At least it works when I logon to BEx via Connect button. For example:
    Public BExApp As Object
    Sub BExAppTest()
        Set BExApp = CreateObject("com.sap.bi.et.analyzer.api.BExApplication")
        MsgBox BExApp.ComConnection.Language
        Set BExApp = Nothing
    End Sub
    P.S. BExApplication object is a part of BExApi.tlb library (if you need a reference, however it seems to work even without a ref).

  • How to Group Audiobooks By Book Title Then Track?

    After finally getting my audiobooks to show up in my ipod audiobooks folder, now I have a new problem. I have all 6 Harry Potter books and each chapter within each book is titled with a number like 01 and then the chapter title. The individual chapters are therefore all mixed up--I have six chapter ones in a row, for instance. Is there any relatively easy way (I am open to software suggestions) that would allow me to organize the files by book and then by chapter title? I have created playlists for each book in which I have done this, but I'd like to be able to do it in the audiobooks folder too. (I read a previous post about this but I didn't quite understand how to fix this within itunes without having to reimport all the files.) Thanks.

    Here's the thread I was referring to:
    http://discussions.apple.com/thread.jspa?messageID=1346758&#1346758
    I think it was just titled "audiobooks."

Maybe you are looking for

  • Voice memos has stopped working

    I've just tried to use my voice memos on my iPhone 4 and when trying to record, I've noticed it's not working. The sound is being picked up, as seen by the noise meter moving, but it isn't actually working. I hit record and exited the program. The re

  • 5.0.1 is a nightmare!

    I was an Android man, always buying the best Droids available. When the iPhone 4s came out I decided it was time to go Apple, so I stood in line early in the morning and was as happy as could be when mine was in my hand! The first few weeks were a to

  • Forms RUN_PRODUCT for Graphics crashes

    I have Forms 6.0.5.0.2 and Graphics 6.0.5.8.0 installed. I have a couple of different charts created in graphics. When I try to display them on my form, I can display the chart just fine the first time. I then select a different parameter to pass to

  • Caller Can't Hear Me

    For some reason, I can receive a call and get in just enough time to say Hello before the caller can't hear me at all. It doesn't drop the call, simply silences me. I have never had this problem and haven't dropped my phone on anything hard. My firmw

  • EFM Add on BPP file formats

    Hi there, I need to have a working BPP file format next week for my customer, I am almost there but can't see how to connect it into the Payment Wizard Bank File export. My file produces all the results or no results. There are no samples supplied fo