Group By Like Dates????

does anyone know if there is a way to group by like dates?
so if there were 10 transaction records in a table, 5 in Oct and 5 in Nov. but not all transactions took place on the same day.
Eg:
DATE AMOUNT
15-OCT-02 1.50
16-OCT-02 115.00
17-NOV-02 200.00
24-NOV-02 99.00
and so on. is there a way i can group the dates together so i can get only one record for each month so it would look like this? i dont need the date displayed
AMOUNT
116.50
299.00
any help would be great
thanks

thanks richard,
that worked great.
but i have one more question.
what i am doing is joining two tables by account number one holds the account_name and the other holds the transaction ammount, and i need to have the ammount displayed based on the month that the user inputs. but if there is no transaction for a given month it comes up no rows selected.
what i would like is to display the account name and if there is no transaction for a given month then have the ammount show 0.00. right now only the accounts that have transactions for the given month come up.
many thanks for any help

Similar Messages

  • Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount 28

    Post Author: tadj188#
    CA Forum: Formula
    Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
    Background:
    1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using  subreports.    A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report    with their respective detail lines).  I had multiple subreports and each subreport became one union.
    Created and tested, already:
    1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
    Issue:
    1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
    Other Ideas Appreciated:
    1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
    Thank you.
    Tadj

    export all image of each page try like this
    var myDoc = app.activeDocument;
    var myFolder = myDoc.filePath;
    var myImage = myDoc.allGraphics;
    for (var i=0; myImage.length>i; i++){
        app.select(myImage[i]);
        var MyImageNmae  = myImage[i].itemLink.name;
        app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
        app.jpegExportPreferences.exportResolution = 300;
           app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
        alert(myImage[i].itemLink.name)

  • Payment Medium Workbench -  Group by Posting Date

    I have made a medium format with DMEE Engine but it doesn't work as I would like.
    I want to have a file with all items group by posting date (subtotals group by posting date, no depends on vendor).
    I have 2 leveles:
       - Level 1: Repetition Factor 1          and Key Field FPAYP-FAEDT (Posting Date)
       - Level 2: Repetition Factor 999999 and Key Field FPAYP-DOC2R (Document unique key)
    However when I execute F110 transaction it generates different files, WHY?
    One file per vendor and posting date, but I WANT TO HAVE A UNIQUE FILE.
    Example
                      Vendor          Posting Date          Ammount
    ITEM 1:       xx                 15/10/2007            100
    ITEM 2:       xx                 15/10/2007            200
    ITEM 3:       yy                 15/10/2007            300
    ITEM 4:       xx                 21/10/2007            400
    ITEM 5:       zz                 21/10/2007            500
    Output (wrong)
    FILE1:
                     15/10/2007
                     xx     100
                     xx     200
                              300
    FILE2:
                     15/10/2007
                     yy     300
                              300
    FILE3:
                     21/10/2007
                     xx     400
                              400
    FILE4:
                     21/10/2007
                     zz     500
                              500
    Output (ok)
    FILE1:
                    15/10/2007
                     xx     100
                     xx     200
                     yy     300
                              600
                     21/10/2007
                     xx     400
                     zz     500
                              900
    Thanks in advanced!

    Ok, the problem has been fixed.
    The repetition factor for level 1 (Posting Date) should be 9999999 instead of 1, beacuse it refers to input data and it doesn't refer to output data.
    We can have differents posting dates in input data, but we want to have a unique line by posting date in output data.
    Regards!

  • Group by with date range.

    Hi,
    I am looking for effective usage of Group by against date range.
    I have a transaction table as below.
    Date            customer_no      amount_paid
    01-Dec-13     001                  500
    02-Dec-13     001                  360
    09-Dec-13     001                  200
    02-Nov-13     001                  360
    09-Nov-13     001                  200
    02-Nov-13     001                  360
    09-Oct-13     001                  200
    02-Oct-13     001                  360
    09-Oct-13     001                  200
    02-Sep-13     001                  360
    09-Sep-13     001                  200
    ............... etc.
    I would like to see sum(amount_paid) by past date ranges 1-30 days, 31-60 days, 61-90 days.
    Below are expected results.
    Customer          Duration       amount_paid
    001                    1-30             980
    001                    31-60           450
    001                    61-90          1200
    002                    1-30             300
    002                    31-60           490
    002                    61-90           320
    003                    1-30             450
    ......................etc.
    I have to group by customer no and date range (1-30, 31-60, 61-90..etc).
    Can someone help me getting query for this.
    Thanks...
    Sreeram.

    SQL> with t
      2  as
      3  (
      4  select to_date('01-Dec-13', 'dd-Mon-rr') dt, '001' customer_no, 500 amount_paid from dual
      5    union all
      6  select to_date('02-Dec-13', 'dd-Mon-rr') dt, '001' customer_no, 360 amount_paid from dual
      7    union all
      8  select to_date('09-Dec-13', 'dd-Mon-rr') dt, '001' customer_no, 200 amount_paid from dual
      9    union all
    10  select to_date('02-Nov-13', 'dd-Mon-rr') dt, '001' customer_no, 360 amount_paid from dual
    11    union all
    12  select to_date('09-Nov-13', 'dd-Mon-rr') dt, '001' customer_no, 200 amount_paid from dual
    13    union all
    14  select to_date('02-Nov-13', 'dd-Mon-rr') dt, '001' customer_no, 360 amount_paid from dual
    15    union all
    16  select to_date('09-Oct-13', 'dd-Mon-rr') dt, '001' customer_no, 200 amount_paid from dual
    17    union all
    18  select to_date('02-Oct-13', 'dd-Mon-rr') dt, '001' customer_no, 360 amount_paid from dual
    19    union all
    20  select to_date('09-Oct-13', 'dd-Mon-rr') dt, '001' customer_no, 200 amount_paid from dual
    21    union all
    22  select to_date('02-Sep-13', 'dd-Mon-rr') dt, '001' customer_no, 360 amount_paid from dual
    23    union all
    24  select to_date('09-Sep-13', 'dd-Mon-rr') dt, '001' customer_no, 200 amount_paid from dual
    25  )
    26  select customer_no
    27       , ((grp_val - 1) * 30) + 1 start_val
    28       , grp_val * 30 end_val
    29       , sum(amount_paid) amount_paid
    30    from (
    31            select dt
    32                 , customer_no
    33                 , amount_paid
    34                 , ceil(sum(dt_interval) over(partition by customer_no order by dt)/30) grp_val
    35              from (
    36                      select dt
    37                           , customer_no
    38                           , amount_paid
    39                           , nvl(dt - lag(dt) over(partition by customer_no order by dt), 1) dt_interval
    40                        from t
    41                   )
    42         )
    43   group
    44      by customer_no
    45       , grp_val
    46   order
    47      by grp_val;
    CUS  START_VAL    END_VAL AMOUNT_PAID
    001          1         30         560
    001         31         60         760
    001         61         90         920
    001         91        120        1060
    SQL>

  • The information of photo like date change after close it. How can'i correct that

    the information of photo like date change after close it. How can'i correct that?

    Using the Photos ➙ Batch Change ➙ Date menu option will let you change the EXIF Capture Date of the photo.
    For a single photo (or to set a group of photos to the same date and time) use the Photos ➙ Adjust Date and Time ... menu option.
    Happy New Year

  • Using Authorization group field in Data entry profile

    Hi,
    I would need some help in configuring/using the authorization group field in data entry profile.
    After setting up the values in the drop down, how do we link to the authorization profiles or roles .
    basically, I would like to know the steps/activities required to use this field

    cross posting->thread locked.

  • Count(*) with group by max(date)

    SQL> select xdesc,xcust,xdate from coba1 order by xdesc,xcust,xdate;
    XDESC XCUST XDATE
    RUB-A 11026 01-JAN-06
    RUB-A 11026 05-JAN-06
    RUB-A 11026 08-JAN-06
    RUB-A 11027 10-JAN-06
    RUB-B 11026 02-JAN-06
    RUB-B 11026 08-JAN-06
    RUB-B 11026 09-JAN-06
    RUB-C 11027 08-JAN-06
    I want to make sql that result :
    XDESC     COUNT(*)
    RUB-A     2
    RUB-B 1
    RUB-C 1
    Criteria : GROUPING: XDESC XCUST AND MAX(DATE)
    bellow mark *** that was selected in count.
    XDESC XCUST XDATE
    RUB-A 11026 01-JAN-06
    RUB-A 11026 05-JAN-06
    RUB-A 11026 08-JAN-06 ***
    RUB-A 11027 10-JAN-06 ***
    ---------------------------------------------------------COUNT RUB-A = 2
    RUB-B 11026 02-JAN-06
    RUB-B 11026 08-JAN-06
    RUB-B 11026 09-JAN-06 ***
    ---------------------------------------------------------COUNT RUB-B = 1
    RUB-C 11027 08-JAN-06 ***
    --------------------------------------------------------COUNT RUB-C = 1
    Can Anybody help ?
    I tried :
    select xdesc,max(xdate),count(max(xdate)) from coba1 group by xdesc
    ERROR at line 1:
    ORA-00937: not a single-group group function
    Thank

    This one is duplicate. see the following link
    Count(*) with group by max(date)
    Thanks

  • Grouping with 2 date in sql server

    totle_count
             dt
             name   
    program_id
    1
      1/3/2015
      Tea
    14
    1
      1/5/2015
      Tea
    14
    1
      1/6/2015
      Lunch
    13
    17
    1/6/2015
      Tea
    14
    2
    1/9/2015
      Breakfast
    1008
    39
    1/10/2015
      Breakfast
    1008
    4
    1/19/2015
      Breakfast
    1008
    1
    1/19/2015
      Dinner
    1009
    3
    1/21/2015
       Tea
    14
    totle_count
              dt
    name
    program_id
    1
       1/6/2015 and 1/8/2015
      Lunch
    13
    2
       1/3/2015 and 1/5/2015
      Tea
    14
    17
       1/6/2015 and 1/9/2015
      Tea
    14
    3
       1/21/2015 and 1/23/2015
      Tea
    14
    41  
    1/9/2015 and 1/11/2015
     Breakfast
    1008
    4
       1/18/2015 and 1/20/2015
     Breakfast
    1008
    1
       1/18/2015 and1/20/2015
    Dinner
    1009
    Here is 2 table, 1st is my row table, and I want to group with 2 date.
    Here is 3 days difference. and sum of value is coming.
    2nt table is my expectation table.
    Plz help me for this problem.
    Thanks
    Samir

    I am doing 3 days grouping here
    "dt" is name of date column
    if "dt" column has '1/19/2015' then next in group it will come in "1/18/2015 and1/20/2015"
    any date of 18 or 19 0r 20 it will come in "1/18/2015 and1/20/2015"
    and counting will add between 3 date
    Sorry your posted output is not as per above rule
    How did row for  1/6/2015 and 1/9/2015 got included then. If you group by 3 days you wont get
    this row as 6-9 is 4 days not 3 days
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Restricted Group as like as domain admins

    I have configure Restricted Group in GPO in mydomains.com.
    So I added a group called 'ABC_Support' and on the second box (This is group is a member of) was Administrators.
    in ABC_Support group, there is one user called 'tech_admin'. 
    Result: GPO was successfully pushed into workstations, and ABC_Support is a member of local administrators and tech_admin can able to administer the workstations.
    Problem: The problem is that, in domain controller, you will see the ABC_Support is also a member of built-in   Administrators. The tech_admin is able to access domain controller remotely and can create users and really like domain admins. 
    Is there any solutions that prevent the problem?  and is this behaviour is normal? is restricted group designed like that? I know there is a GPO under user configuration "local users and group".

    Hi Ben,
    As others suggested, please make sure that the Restricted Groups setting was not applied to domain controllers. To do this, we can link the GPO to the OU where all workstations reside,  or we can use security filtering or WMI filter to filter out domain
    controllers if we link the GPO to the domain scope. 
    Besides, as you know, instead of Restricted Groups, we can also use Group Policy Preferences Local Users and Groups extension to make a domain user a local admin. In this way, we can use GPP item-level targeting to apply our settings to specific targets.
    Regarding this point, the following article can be referred to for more information.
    How to use Group Policy Preferences to Secure Local Administrator Groups
    http://www.grouppolicy.biz/2010/01/how-to-use-group-policy-preferences-to-secure-local-administrator-groups/
    In addition, regarding security filtering, WMI filtering, and ILT, the following blog can be referred to for more information.
    Security Filtering, WMI Filtering, and Item-level Targeting in Group Policy Preferences
    http://blogs.technet.com/b/grouppolicy/archive/2009/07/30/security-filtering-wmi-filtering-and-item-level-targeting-in-group-policy-preferences.aspx
    Best regards,
    Frank Shen
    I have applied the GPO of ABC_support (restricted group) with WMI filtering and it is not applied to domain controller. On Domain controllers OU, I made another GPO to deny this group to remote desktop and login locally so that the group will not able to
    do unexpected activity.
    However, I found that that the "\\mydomaincontrollers\Anydrive$ such as \\c$" can be accessible from workstations ou. If I deny the terminal service in GPO on Domains abc.local, it will apply to all computers and shared folders '\\servers\example' cannot
    be accessible if I deny login through terminal services. why is that? suppose network and shared map folder use different ports and remote desktop/terminal service use different ports.
    there are lot of thousands workstations in computerOU with different child domains and parent domains as well I need to manage. so it's really hard for me to move to another ou.
    please advise

  • Coherence as like data access

    hi
    is coherence as like data access for toplink?
    if is possible , how configue for toplink without database?
    thanks

    When I click that I get a page saying:
    Invalid Portal Session
    An error was encountered while processing your Portal request, because your portal session is no longer valid. You have been logged out and you will automatically be redirected to the OracleAS Portal home page in 30 seconds. Click OracleAS Portal home page to go directly to the OracleAS Portal home page, or if your browser does not automatically redirect you. If you continue to have problems while accessing OracleAS Portal, close all your browser instances and try again.

  • Dynamically group records by date

    I am attempting to create a report that will dynamically group records into a set number of date buckets.  This is similar to grouping records by a date field and setting the days, weeks, months, etc property but instead of grouping by a set time span I want to a specific number of date groups regardless of date span.  So say i have records where the first date is today at 1am and the last record is today at 9 pm.  I want the data grouped into 10 groups and the time calculated for that group based on total time span / 10.  The first group would be 1AM to 3AM, the second would group 3AM to 5AM, etc..  The reason I am doing this is for a chart that displays record counts over time but the overall timespan will never be known until runtime.  Setting the chart for hourly or weekly doesn't work because if the user runs the report over a year the dates will be illegible.
    Thanks in advance!

    Well this SHOULD be easy. But leave it to CR make not...
    You can start by finding the minimum & maximum dates within your range:
    Local DateTimeVar MinDate;
    MinDate := Minimum({Table.DateField})
    and
    Local DateTimeVar MaxDate;
    MaxDate := Maximum({Person.ModifiedDate})
    Then figure out what the the interval would be if the span is broken down into 10 equal parts"
    DateDiff("n", {@MinDate}, {@MaxDate}) / 10
    From there just use a formula to segregate each records into the appropriate groups:
    EvaluateAfter({@Interval});
    IF {Table.DateField} >= {@MinDate}
        AND {Table.DateField} <= DateAdd("n",{@Interval}, {@MinDate}) THEN 1 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval}, {@MinDate})
        AND {Table.DateField} <= DateAdd("n",{@Interval} * 2, {@MinDate}) THEN 2 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 2, {@MinDate})
        AND {Table.DateField} <= DateAdd("n",{@Interval} * 3, {@MinDate}) THEN 3 ELSE
    IF{Table.DateField} > DateAdd("n",{@Interval} * 3, {@MinDate})
        AND{Table.DateField} <= DateAdd("n",{@Interval} * 4, {@MinDate}) THEN 4 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 4, {@MinDate})
        AND {Table.DateField} <= DateAdd("n",{@Interval} * 5, {@MinDate}) THEN 5 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 5, {@MinDate})
        AND {Table.DateField} <= DateAdd("n",{@Interval} * 6, {@MinDate}) THEN 6 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 6, {@MinDate})
        AND {Table.DateField} <= DateAdd("n",{@Interval} * 7, {@MinDate}) THEN 7 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 7, {@MinDate})
        AND{Table.DateField} <= DateAdd("n",{@Interval} * 8, {@MinDate}) THEN 8 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 8, {@MinDate})
        AND {Table.DateField} <= DateAdd("n",{@Interval} * 9, {@MinDate}) THEN 9 ELSE
    IF {Table.DateField} > DateAdd("n",{@Interval} * 9, {@MinDate})
        AND {Table.DateField}  <= {@MaxDate} THEN 10
    This is where CR drops the ball... IMHO... it WON'T allow you to to group by a formula field that uses an aggregate in the formula (in this case Minimum & Maximum)... It will however allow to to graph on it, which I assume is what you are actually trying to do.  If anyone knows a way to work around the grouping issue, I'd love to know it myself.
    HTH,
    Jason

  • Use of semantic groups to aggregate data

    In a number of threads - e.g. Semantic Groups in DTP it is stated that you cannot use semantic groups to aggregate data. In others, there are statements that this is only for handling the error stack.
    This I find puzzling, as the SAP Help says:
    +Choose Semantic Groups to specify how you want to build the data packages that are read from the source (DataSource or InfoProvider). To do this, define key fields. Data records that have the same key are combined in a single data package.
    This setting is only relevant for DataStore objects with data fields that are overwritten. This setting also defines the key fields for the error stack. By defining the key for the error stack, you ensure that the data can be updated in the target in the correct order once the incorrect data records have been corrected.+
    The experience of one of my clients is that you can indeed use Semantic Groups, and you do not need to define an error-DTP. ( Change the error handling on the Update tab to, e.g. "1 Valid Records Update, No Reporting" - then the key fields displayed after perssing the semantic group button become available ).
    Any comments? Have I misunderstood the point that the others have been making?
    matt

    Hi Matt,
    Semantic group is used to define the groupiing of records by data package.  If you select 0PLANT as a Semantic group, each packet of data will contain all values of 0PLANT until the Max record is reach.  Example, Package Size is set to 50K.  If you have 30K of 0PLANT = 0002 and 22K of 0PLANT = 0003.  First packet will contain 52K records of plant 0002 & 0003.  The next packet will start with plant 0004 and will contain all records with 0004.  If this doesn't make 50K records then plant 0005 will be included in packet 2. 
    Regards,
    Dae Jin

  • What's def of field group and intermediate data set

    what's def of field group and intermediate data set

    The drawing panel cannot draw the figures, what's
    wrong?You can't have written this much code and then suddenly detected it doesn't work at all. You must now restart from the point where you had a working program. Then you add code is small increments and see to it that it works in each step and you understand why it works. This method is called stepwise refinement and it does wonders.

  • I want to show movable image on form like data loding symbol

    Dear All, I am working on developer2000 6i version I want to show movable image on form like data loding symbol.currently i have taken .GIF Image but it is not moving so is there any way to do the same. oracle 10g forms 6i version Faizan

    Hi Faizan,
              Even i work on D2K (Forms 6i). I have tried this below & found the result.
         Its true that you can not add animated image. But you can definitely show a data loading symbol in code.
         Add 2 different contrast colours and choose a striped pattern.
    1) Create a text item with a lengthy rectangle (width minimum of 300).
    2) Create a visual attribute for it with desired colours.
    3) Finally add the following in between your code.
    Your Code
    set_item_property('YOUR_BLOCK.TEXT_ITEM',visible,property_true);
       set_item_property('YOUR_BLOCK.TEXT_ITEM', width,2);
    Your Code
    tot_wid:= get_item_property('YOUR_BLOCK.TEXT_ITEM', width);
    Your Code
    set_item_property('BLOCK3.PROGBAR', width,100);
    Your Code
    set_item_property('BLOCK3.PROGBAR', width,300);
    Message('Data Loading is completed');
    Try this out and let me know if its working as you expected & also let me know if there is a problem.

  • Can rollback segments span one datafile like data segments

    1.Can rollback segments span one datafile like data segments?
    For e.g we have undo tablespace with 2 data files
    We have one active transaction in rbs01,now when rollback segment grows and extents are allocated to it ,if all the extents will be allocated to one data file or it can be allocated to any of the two data file.
    2.Can we set the transaction to a particular rollback segment when undo_management parameter is set to AUTO?

    1.Can rollback segments span one datafile like data
    segments?
    For e.g we have undo tablespace with 2 data files
    We have one active transaction in rbs01,now when
    rollback segment grows and extents are allocated to
    it ,if all the extents will be allocated to one data
    file or it can be allocated to any of the two data
    file.I don't think so. E.g. if you have a long transaction, you will need to create a larger RB segment and allocate this segment to be used. That's why you should be using automatic undo management as opposed to manual rollback segments.
    2.Can we set the transaction to a particular rollback
    segment when undo_management parameter is set to AUTO?No, when you use automatic undo management, you create one tablespace for undo management. THere is no concept of individual rollback segments.

Maybe you are looking for

  • ITunes won't open from dock or apps

    When I click on the iTunes icon on the dock, it bounces once (sometimes twice), then stops bouncing and nothing opens. I tried opening from the application folder and nothing. I tried downloading the most recent version, but then I can't open the .dm

  • Problem Checking if File Exists When App is Launched

    I'm developing an app which checks a file "lastuser.txt" to determine which database to open, as sometimes people share phones. Anyway, I'm trying to call  TryGetItemAsync() in the OnLaunched() section in App.xaml.cs but I get the message "The name '

  • DB connection is doing a DNS lookup

    I have an application coded in Java which checks the oracle database if any new record is added. so the line of code for eastablishing the conection is : java.sql.Connection conn = � DriverManager.getConnection ( "jdbc:oracle:thin:@10.3.7.197:1521:DE

  • How do I get iTunes to recognize my iPad 2?

    How do I get iTunes to recognize and sync with my iPad?

  • Crystal reports Drilldown

    In crystal reports 11.5 as i drilldown on the report the group changes for example i have 3 groups 1.Region 2. Loss & Damage 3. Paid & Denied In the report i am showing it as Region name       Loss            Paid            Denied       Damage