Column sum: odd bug

I find it really useful to have the sum of an entire column { eg. =SUM(B) } in the header cell of that column. Unlike in Excel, the formula =SUM(B) doesn't include the header cells themselves in the total, so it isn't a self-reference.
But in Numbers '09 there's an odd bug. Try this. Open a new document (select Blank from the Template Chooser). The first column and row are set as header column and row. Click on B1 (the header cell for column B) and insert the formula =SUM(B). This cell will now correctly display the total of all the cells from B2 onwards. Suppose this total is 12. Click again on B1, and the formula, instead of appearing as =SUM(B) now appears as =SUM('12').
Does everyone get this?
Martin S Taylor

It seems that something is odd in your system.
I am unable to reproduce the described behavior.
in F1, F2, F3, F4, F5, F20,F21, F22, F23, F24, the formula is the same =SUM(F)
In A10 I entered =SUM(B10:$O10) and used fill to the right.
Then I used fill down.
Yvan KOENIG (from FRANCE dimanche 11 janvier 2009 17:50:52)

Similar Messages

  • Query Print Layout column sum in report footer

    Hi Experts,
    I am utilizing a query and created the layout via Query Print Layout. I am using sort and group functions which filters my column sums for a certain field conditions. My problem is that when I want to make a total column sum for all the repetitive footers' column sum, the system shows a message that only repetitive areas can be average/ sum.
    Is this the standard behaviour of the system? Or is this a limitation if we are using the print layout via Query print layout. Any workaround to get the final total for all pages column sum?
    Please advise.
    Thanks,
    Don

    hello
    Don
    what u want actually i dint understood as i now but u need colsum of ur repetitive fields or repetitive footer fields
    I).if u want repetitive footer all columns sum take the contact of those fields ex:(concat(F_a+F_B -
    )) so u can get ur total for repetitive footer fields
    II).if u want repetitive area lines colsum for every field u take as colsum with respect to the unique id of repetitive area fields
    regards
    Jenny

  • How to get sum of bugs for particular Mnth and particular Year dynamically?

    Hi All,
    I've a query related to dynamic date and year :
    select bug_id,
    category,
    count(*) Total_bugs,
    SUM(CASE when bug_date >= '10/1/2011' and bug_date <= '10/31/2011' Then 1 else 0 end) OCT_11,
    SUM(CASE when bug_date >= '9/1/2011' and bug_date<= '9/30/2011' Then 1 else 0 end) SEP_11,
    FROM AA_BUG_TBL
    GROUP BY BUG_ID,BUG_CATEGORY
    In the above query,Can we write one sum statement to get sum of bugs for a particular month and particular year dynamically?
    for ex:2 bugs between 10/1/2011 and 10/31/2011 then 2 under oct_11
    5 bugs between 09/01/11 and 09/30/2011 then 5 under sep_11
    In this case we need to calculate correct no of days for feb
    Thanks,
    Mahender.

    So...
    You need to iterate based on something like the month, quarter, year... Then query on that. I'll use a "WITH" clause to illustrate:
    with my_bugs as
        select bug_id
             , bug_date
             , case when to_char ( bug_date, 'QYYYY' ) = '12009' then 1 else 0 end y2009q1_bug
             , case when to_char ( bug_date, 'QYYYY' ) = '22009' then 1 else 0 end y2009q2_bug
             , case when to_char ( bug_date, 'QYYYY' ) = '32009' then 1 else 0 end y2009q3_bug
             , case when to_char ( bug_date, 'QYYYY' ) = '42009' then 1 else 0 end y2009q4_bug
             , case when to_char ( bug_date, 'YYYY' ) = 2009 then 1 else 0 end y2009_bug
             , case when to_char ( bug_date, 'YYYY' ) = 2010 then 1 else 0 end y2010_bug
             , case when to_char ( bug_date, 'YYYY' ) = 2011 then 1 else 0 end y2011_bug
             , case when 1 = 1 then 1 else 0 end is_bug_flag
          from bugs
      select bug_id
           , bug_date
           , sum   ( y2009q1_bug ) over () as total_bugs_2009q1
           , sum   ( y2009q2_bug ) over () as total_bugs_2009q2
           , sum   ( y2009q3_bug ) over () as total_bugs_2009q3
           , sum   ( y2009q4_bug ) over () as total_bugs_2009q4
           , sum   ( y2009_bug   ) over () as total_bugs_2009
           , count (*)             over ( partition by is_bug_flag ) as total_bugs
        from my_bugsI mocked up some data so my results will be drastically different than yours but here are the results:
        BUG_ID BUG_DATE  TOTAL_BUGS_2009Q1 TOTAL_BUGS_2009Q2 TOTAL_BUGS_2009Q3 TOTAL_BUGS_2009Q4 TOTAL_BUGS_2009 TOTAL_BUGS
          2014 10-SEP-10                 0                 0               114              1143         1257         10000
          2015 14-APR-10                 0                 0               114              1143         1257         10000
          2016 30-NOV-09                 0                 0               114              1143         1257         10000
          2017 03-JUN-11                 0                 0               114              1143         1257         10000
          2018 29-DEC-10                 0                 0               114              1143         1257         10000
          2019 12-JAN-11                 0                 0               114              1143         1257         10000
          2020 21-APR-10                 0                 0               114              1143         1257         10000
          2021 12-JAN-11                 0                 0               114              1143         1257         10000
          2022 29-NOV-10                 0                 0               114              1143         1257         10000
          2023 20-JUL-11                 0                 0               114              1143         1257         10000
          2024 04-MAR-11                 0                 0               114              1143         1257         10000

  • JPA Metadata issue/ Weird Column error or bug in openjpa ...?

    Hi All,
    I am getting the following exception when using openjpa in my project.
    The line of code that throws the error is also mentioned
    The latter error shows a column mismatch error which i am not sure is correct since the db i am using is Oracle 10g and the datatypes for the column are varchar2.
             BcsPort bcsPort=em.find(BcsPort .class, port);   //Error after this call.
    EJB Exception: : &lt;openjpa-1.1.1-SNAPSHOT-r422266:965591 fatal user error&gt; org.apache.openjpa.per
    sistence.ArgumentException: Errors encountered while resolving metadata.  See nested exceptions for details.
            at org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:567)
            at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:308)
            at org.apache.openjpa.kernel.BrokerImpl.newObjectId(BrokerImpl.java:1121)
            at org.apache.openjpa.kernel.DelegatingBroker.newObjectId(DelegatingBroker.java:268)
            at org.apache.openjpa.persistence.EntityManagerImpl.find(EntityManagerImpl.java:451)
            at sun.reflect.GeneratedMethodAccessor472.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:93)
            at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:91)
            at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:80)
            at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:26)
            at $Proxy76.find(Unknown Source)
           .... so onFollowed by this as the cause from what i can make
    Caused by: &lt;openjpa-1.1.1-SNAPSHOT-r422266:965591 fatal user error&gt; org.apache.openjpa.persistence.ArgumentException: "
    com.test.domain.BcsNe.ne" declares a column that is not compatible with the expected type "varchar".  Column detail
    s:
    Full Name: bcsne.ne
    Type: blob
    Size: 0
    Default: null
    Not Null: false
            at org.apache.openjpa.jdbc.meta.MappingInfo.mergeColumn(MappingInfo.java:660)
            at org.apache.openjpa.jdbc.meta.MappingInfo.createColumns(MappingInfo.java:518)
            at org.apache.openjpa.jdbc.meta.ValueMappingInfo.getColumns(ValueMappingInfo.java:143)
            at org.apache.openjpa.jdbc.meta.strats.StringFieldStrategy.map(StringFieldStrategy.java:79)
            at org.apache.openjpa.jdbc.meta.FieldMapping.setStrategy(FieldMapping.java:120)
            at org.apache.openjpa.jdbc.meta.RuntimeStrategyInstaller.installStrategy(RuntimeStrategyInstaller.java:80)
            at org.apache.openjpa.jdbc.meta.FieldMapping.resolveMapping(FieldMapping.java:438)
            at org.apache.openjpa.jdbc.meta.FieldMapping.resolve(FieldMapping.java:403)
            at org.apache.openjpa.jdbc.meta.ClassMapping.resolveNonRelationMappings(ClassMapping.java:834)
            at org.apache.openjpa.jdbc.meta.MappingRepository.prepareMapping(MappingRepository.java:324)
            at org.apache.openjpa.meta.MetaDataRepository.preMapping(MetaDataRepository.java:667)
            at org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:549)
            ... 78 moreI have seen this link https://issues.apache.org/jira/browse/OPENJPA-1481
    Can anyone help me out on this as i cannot make out if this is a problem in openjpa or the weblogic server 10.0 server
    that i am using to make the call..
    Any inputs on this highly appraciated

    gimbal2 wrote:
    That link seems to deal with a bug relating to a one to many mapping. I don't see anywhere in your post that you are dealing with the same thing.
    Actually i am using Many to One mapping as you can see from the code excerpt
    BcsPort
    @ManyToOne(optional=false, cascade=CascadeType.ALL, fetch=FetchType.EAGER)
         @JoinColumn(name="ne",referencedColumnName="ne")
         private BcsNe bcsNe;Why i posted the link was that it seems to throw the same weird column exception that i got and more googling revelead that it was indeed some issue between the way the oracle varchar2 field is being handled by openjpa.
    so just needed to confirm if this was a widely faced issue and a possible fix to the same
    Is there a particular reason why you are using openjpaActually it's been added recenlty to the system as before it was using normal JDBC Code...
    In stead of the persistence provider shipped with your JEE container anyway?Do you mean that i should use the Oracle Weblogic 10.3 persistence provider...?
    kindly suggest...
    thanks

  • Column Privilege Security Bug in Oracle 9i

    There seems to be a bug in matching column privileges between VIEW and TABLE objects. In the SQL script below, this bug lets users INSERT values into columns that they do not have INSERT privileges on. (I guess that the bug would also let people UPDATE columns they do not own).
    This is the first time I've come into this forum, so please accept my appologies if this is the wrong place to report bugs, or this bug is already widely known.
    Adam
    In the following scripts, SYSTEM grants INSERT on column A, but column B gets inserted.
    SQL> connect system/manager @DB2
    SQL> create table t1(a int,b int,c int);
    SQL> create user adam identified by adam;
    SQL> grant create view to adam;
    SQL> grant select on t1 to adam;
    SQL> grant insert(a) on t1 to adam;
    SQL> connect adam/adam @DB2
    SQL> create view v1 as select b y,c z,a x from system.t1;
    SQL> insert into v1(y) values(1);
    SQL> commit;
    SQL> connect system/manager @DB2
    SQL> select * from t1;
    A B C
    1

    I've given here the required details:
    SQL*Plus: Release 8.0.5.0.0 - Production on Tue Jul 15 22:47:45 2003
    (c) Copyright 1998 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    DEV> drop table tmp_kar
    2 /
    Table dropped.
    DEV> create table tmp_kar (
    2 item_code varchar2(10) not null,
    3 document_no varchar2(6) not null,
    4 document_date date not null,
    5 ccn varchar2(3))
    6 /
    Table created.
    DEV> create index idx_tmp_krd__doc_date on tmp_kar (document_date desc) tablespace indx
    2 /
    Index created.
    DEV> insert into tmp_kar values ('G40101008','x','03-jan-2003','xxx')
    2 /
    1 row created.
    DEV> drop table tmp_ccn
    2 /
    Table dropped.
    DEV> create table tmp_ccn (ccn varchar2(3))
    2 /
    Table created.
    DEV> insert into tmp_ccn values ('xxx')
    2 /
    1 row created.
    DEV> commit
    2 /
    Commit complete.
    DEV> select k.ccn, document_date
    2 from tmp_kar k, tmp_ccn c
    3 where item_code = 'G40101008' and
    4 document_date >= '31-dec-2002' and
    5 document_date < '02-apr-2003' and
    6 k.ccn = c.ccn
    7 /
    CCN DOCUMENT_
    xxx 03-JAN-03
    DEV> select k.ccn, document_date
    2 from tmp_kar k
    3 where item_code = 'G40101008' and
    4 document_date >= '31-dec-2002' and
    5 document_date < '02-apr-2003' and
    6 ccn in (select ccn from tmp_ccn)
    7 /
    no rows selected
    DEV>
    Though the two sql statements should give the same result, it is not so.
    I suspect some bug in indexing document_date desc. What could be the reason?

  • Get Column sum, count in sql developer

    Dear All seniors,
    I need help in oracle sql developer that after select statement when we got our result in below rows and coloums,
    then how to get its sum, count, etc.
    as in pl sql developer we simply right click at a column and then click on the desired function.
    is this facility also have in sql developer?

    We've kicked around the idea of doing this for awhile. I believe there's already an item in the Exchange if you want to up vote it. The challenge being if it's a result set which hasn't been fully fetched, doing an aggregate would require one - and that could be costly. Of course folks live in the grids so I see the value in this type of feature as well.
    As a workaround, you could of course export your data to CSV or XLS and do the calculations in your favorite spreadsheet software.

  • JDev 11.1.1.3: Column Sum needs to work like getEstimatedRowCount

    Hi there,
    I am working with the table component and a large dataset (thousands of rows).
    I need to see a column total (sum) in the column footer. Since we're dealing with a large dataset, I thought the appropriate way to do this is to select sum(columnName) which works just fine.
    What I want my total to do though is to also act dynamically to changes in data within the table so that if I insert a new row or update a row, the total will change.
    I thought of the getEstimatedRowCount method and how it selects count(*) and also merges local information such as row inserts and deletes to give you the proper row count.
    I want a way that I can get my sum in the same manner. So that I can select sum(columnName) and also keep track of the local changes.
    Any thoughts of how to do this ?
    Thanks,
    Mark

    Hi,
    what about
    - Managed Bean in ViewScope to hold the SUM value.
    - Summary field that references SUM value from its value property
    - When managed bean instantiates, access ViewObject and issue query select sum(...) from ...
    - Define a value change listener on column cell field and have it referencing the same managed bean
    - Set the column cell have its autosubmit property set to true so the value change is called whenever the user leaves the field
    - In the value change listener, compare valueChangeEvent.getOldValue with valueChangeEvent.getNewValue and build the Diff
    - Update the SUM value in the managed bean
    - Access the SUM field (the UI component to show the SUM from the managed bean) and PPR it
    This should work best and performant
    Frank

  • Sum total bug

    I have a bug in 4.1.41 with Sum Total at the right...
    Each cell in my display is a simple calc like SUM(Hits). This is then Sum totaled as a Grand total at
    the right. Everything works fine in this case.
    Now if I replace my simple calc with a more complex calc into the same calculation: DECODE(SIGN(NVL(SUM(Hits),0)-NVL(SUM(DECODE(Category,'Audio',Hits,'TV and Music',Hits,0)),0)+NVL(SUM(DECODE(Page,'Digital Music',Hits,'Listen to Music',Hits,0)),0)),1,0,1)...the Grand total at the right works fine the first time...until I save the sheet and exit...and then get back into Discoverer.
    When I get back into Discoverer...my Grand total at the right displays as all blanks. It simply refuses to display like it did the first time when I defined it. In order to get around this bug, I have to makeup a new simple calc, and then redefine it by putting my more complex definition into it.
    This gets old and is tedious. Anybody know what is going on?

    I have a bug in 4.1.41 with Sum Total at the right...
    Each cell in my display is a simple calc like SUM(Hits). This is then Sum totaled as a Grand total at
    the right. Everything works fine in this case.
    Now if I replace my simple calc with a more complex calc into the same calculation: DECODE(SIGN(NVL(SUM(Hits),0)-NVL(SUM(DECODE(Category,'Audio',Hits,'TV and Music',Hits,0)),0)+NVL(SUM(DECODE(Page,'Digital Music',Hits,'Listen to Music',Hits,0)),0)),1,0,1)...the Grand total at the right works fine the first time...until I save the sheet and exit...and then get back into Discoverer.
    When I get back into Discoverer...my Grand total at the right displays as all blanks. It simply refuses to display like it did the first time when I defined it. In order to get around this bug, I have to makeup a new simple calc, and then redefine it by putting my more complex definition into it.
    This gets old and is tedious. Anybody know what is going on?

  • Is there a How To on column sum totals, break formatting, 4 tabular reports

    Hi,
    I haven't needed to do a grand totals for a column until now. I see that there is built in BREAK FORMATTING. I looked for a how to on it but found none.
    Anyone have a good reference to explain basics? customizations?
    Thanks, Bill

    Hi there,
    If your column alignment is right the Sum will be right too in bold.
    Break Formatting/Display this text when printing report sums
    You can do [h4]Total of Something[h4] or use Style, for instance.
    Same with “Display this text on report breaks using #SUM_COLUMN_HEADER# substitutions”. [h4] #SUM_COLUMN_HEADER# [h4] for instance.
    I hope this would help.
    Konstantin

  • Really odd bug in Mail

    I occasionally receive pictures from a japanese friend's mobile phone. The file names are like 画像-0203.jpg. The odd thing is mail will just decide to display whichever picture it wants regardless of the number. Let me explain clearly.
    (for those wondering, 画像 is pronounced Ga Zoh, it just means Image)
    I receive a mail with image 画像-0198.jpg, it's a family playing Wii in japan.
    Maybe a little later I will receive another mail from the same person, image 画像-0203.jpg, which in reality is someone singing karaoke but instead displays in the email as 画像-0198.jpg the family playing Wii in japan.
    Now if i SAVE those pics, they will save as the correctly named files. If i view as a slideshow, they will display as the correct images. But for some reason in the emails, they all get displayed as the First file i receive.
    I tried checking what happens when I quit Mail and reopen. Well the first email I click on from that person will become Mail's favorite and Mail decides to show THAT one in every email. I'm assuming Mail is having trouble with Unicode. What doesn't make sense is, even if Mail is viewing the Unicode as its double-byte equivalent, that's only 4 characters... it shoud be able to differentiate between "DGHY-182" and "DGHY-205" (just as an example).
    This HAS to be a bug.

    The ability to permanently delete a message without moving it to the Trash first, by means of Edit > Cut (⌘X), seems to be a feature rather than a bug -- I assume you meant Command-X, not Ctrl-X.
    It should only work if the main Mail window is on the front and the messages list pane is active, though. Typing ⌘X when a non-editable message window is on the front should do nothing (and it does nothing on my system, just beeps).
    Could it be that, for some reason, the message window wasn't the frontmost window when you hit ⌘X? That would certainly explain what happened and it would be intended behavior...

  • Finder column view rendering bug

    See attached image.
    Quite often I get this rendering bug. It has been around since Mac OS X Lion and is still occuring in Mountain Lion.
    The only way to fix the rendering bug is to switch to another type of view and them back to the columns view.
    Can anybody confirm this bug?

    I've never noticed  this before. Here is another discussion on the same topic--no solution there either:
    http://forums.macrumors.com/showthread.php?t=1530290

  • DataGrid Column Width Issues (Bug?)

    I have a couple datagrid with three columns, one column in
    each grid has width="50". I've noticed some odd behavior with this.
    First, in Flex Builder, the width of those columns randomly change
    in Design view. If I go and change the width setting to something
    else and back to 50 or refresh the display it goes back to
    displaying correctly.
    Second, when I actually run the project, it seems that my
    contraint layout settings expand my 50 pixels significantly. It
    certainly doesn't evenly split my three columns if I have a width
    setting, but it is far bigger than 50 pixels.
    These could be completely unrelated, but are both
    unexpected.

    I haven't set the horizontalScrollPolicy, so I'm assuming
    it's the default. The way you described it is the way I understand
    it would work, however, it seems that when I use contraint layout
    to stretch it to nearly 100% across the screen, the 50 pixels is
    not kept. That one column is certainly narrower that the remaining
    two columns, but it is far bigger that 50 pixels. It's more like
    100 or 150. It's more an annoyance than anything. I have a column
    with a Checkbox in this disproportionally large column. Visually,
    it looks odd.

  • Looping through date column - Summing hours per day

    All,
    Running the query below against my timesheet tables I get the following results:
    -----SQL CODE------
    SELECT
    ts.ts_date Date,
    ts.user_name Name,
    tc.account Account,
    ts.no_of_hrs Hours,
    SUM(ts.no_of_hrs) OVER(PARTITION BY ts.ts_date) Daily_Total
    FROM
    eba_time_timesheet ts,
    eba_time_timecodes tc
    WHERE
    ts.timecode_id = tc.id AND
    ts.user_name LIKE 'JohnD'
    ORDER BY
    1
    -----RESULTS-------
    Date          Name          Account     Hours     Daily Total
    1-Dec-09     JOHND          489310          1.5     8
    1-Dec-09     JOHND          486830          1.5     8
    1-Dec-09     JOHND          481710          3     8
    1-Dec-09     JOHND          481210          0.5     8
    1-Dec-09     JOHND          486840          0.5     8
    1-Dec-09     JOHND          485710          0.5     8
    1-Dec-09     JOHND          481010          0.5     8
    2-Dec-09     JOHND          481710          1     8
    2-Dec-09     JOHND          485710          7     8
    3-Dec-09     JOHND          481710          6     8
    3-Dec-09     JOHND          488810          1.5     8
    3-Dec-09     JOHND          481310          0.5     8
    4-Dec-09     JOHND          489710          8     8
    7-Dec-09     JOHND          481110          0.5     8
    7-Dec-09     JOHND          489710          7     8
    7-Dec-09     JOHND          481210          0.5     8
    However, I would prefer the Daily Total column be a row in the results instead of a column. Here is an example of how I would prefer the results. This statement will then be sent to a calendar for each user to see there time for each account and total time per day.
    Date          Name          Account     Hours
    1-Dec-09     JOHND          489310          1.5     
    1-Dec-09     JOHND          486830          1.5     
    1-Dec-09     JOHND          481710          3     
    1-Dec-09     JOHND          481210          0.5     
    1-Dec-09     JOHND          486840          0.5     
    1-Dec-09     JOHND          485710          0.5     
    1-Dec-09     JOHND          481010          0.5     
    *1-Dec-09     JOHND          Daily Total     8*
    2-Dec-09     JOHND          481710          1     
    2-Dec-09     JOHND          485710          7
    *2-Dec-09     JOHND          Daily Total     8*
    3-Dec-09     JOHND          481710          6     
    3-Dec-09     JOHND          488810          1.5     
    3-Dec-09     JOHND          481310          0.5
    *3-Dec-09     JOHND          Daily Total     8*
    4-Dec-09     JOHND          489710          8
    *4-Dec-09     JOHND          Daily Total     8*
    7-Dec-09     JOHND          481110          0.5     
    7-Dec-09     JOHND          489710          7     
    7-Dec-09     JOHND          481210          0.5
    *7-Dec-09     JOHND          Daily Total     8*
    Any help would be greatly appreciated.
    This is my 1st post so if I've left something out or you need additional info please let me know.
    I’m using Oracle 10g

    user9160575 wrote:
    Thanks for all the input! I ended up using the GROUP BY ROLLUP and adding a CASE statement for inserting "DAILY TOTAL" in the account column.If you are on at least 10g, model solution could be simpler:
    with t as (
               select to_date('1-Dec-09','dd-mon-yy') dt,'JOHND' name,489310 account,1.5 hours,8 daily_total from dual union all
               select to_date('1-Dec-09','dd-mon-yy'),'JOHND',486830,1.5,8 from dual union all
               select to_date('1-Dec-09','dd-mon-yy'),'JOHND',481710,3,8 from dual union all
               select to_date('1-Dec-09','dd-mon-yy'),'JOHND',481210,0.5,8 from dual union all
               select to_date('1-Dec-09','dd-mon-yy'),'JOHND',486840,0.5,8 from dual union all
               select to_date('1-Dec-09','dd-mon-yy'),'JOHND',485710,0.5,8 from dual union all
               select to_date('1-Dec-09','dd-mon-yy'),'JOHND',481010,0.5,8 from dual union all
               select to_date('2-Dec-09','dd-mon-yy'),'JOHND',481710,1,8 from dual union all
               select to_date('2-Dec-09','dd-mon-yy'),'JOHND',485710,7,8 from dual union all
               select to_date('3-Dec-09','dd-mon-yy'),'JOHND',481710,6,8 from dual union all
               select to_date('3-Dec-09','dd-mon-yy'),'JOHND',488810,1.5,8 from dual union all
               select to_date('3-Dec-09','dd-mon-yy'),'JOHND',481310,0.5,8 from dual union all
               select to_date('4-Dec-09','dd-mon-yy'),'JOHND',489710,8,8 from dual union all
               select to_date('7-Dec-09','dd-mon-yy'),'JOHND',481110,0.5,8 from dual union all
               select to_date('7-Dec-09','dd-mon-yy'),'JOHND',489710,7,8 from dual union all
               select to_date('7-Dec-09','dd-mon-yy'),'JOHND',481210,0.5,8 from dual
    select  dt "Date",
            name "Name",
            account "Account",
            hours "Hours"
      from  t
      model
        dimension by(dt,name,to_char(account) account)
        measures(hours,daily_total,0 seq)
        rules upsert all(
                         hours[any,any,'Daily Total'] = max(daily_total)[cv(dt),cv(name),any],
                         seq[any,any,'Daily Total'] = 1
      order by dt,
               name,
               seq,
               account
    Date      Name  Account                                       Hours
    01-DEC-09 JOHND 481010                                           .5
    01-DEC-09 JOHND 481210                                           .5
    01-DEC-09 JOHND 481710                                            3
    01-DEC-09 JOHND 485710                                           .5
    01-DEC-09 JOHND 486830                                          1.5
    01-DEC-09 JOHND 486840                                           .5
    01-DEC-09 JOHND 489310                                          1.5
    01-DEC-09 JOHND Daily Total                                       8
    02-DEC-09 JOHND 481710                                            1
    02-DEC-09 JOHND 485710                                            7
    02-DEC-09 JOHND Daily Total                                       8
    Date      Name  Account                                       Hours
    03-DEC-09 JOHND 481310                                           .5
    03-DEC-09 JOHND 481710                                            6
    03-DEC-09 JOHND 488810                                          1.5
    03-DEC-09 JOHND Daily Total                                       8
    04-DEC-09 JOHND 489710                                            8
    04-DEC-09 JOHND Daily Total                                       8
    07-DEC-09 JOHND 481110                                           .5
    07-DEC-09 JOHND 481210                                           .5
    07-DEC-09 JOHND 489710                                            7
    07-DEC-09 JOHND Daily Total                                       8
    21 rows selected.
    SQL> SY.

  • Grid - imput columns, summing

    Hello,
    I have received a design spec to use a grid. Below are some of the requirements. 
    1. The first line of the grid should be only output since this is a reference line. The next lines should be available for input, but only some columns, the other columns should contain information copied from the reference line.
    2. The header text for the columns that are for input should be colored red.
    3. I also need to sum one column, but only the input values, ie. excluding the value in the first line (reference).
    Is this possible?
    Thank you for your help,
    Patrick

    Hi,
    1. What you need to do for this is to enable the editing feature cell by cell. The same can be acived by adding a column STYPE TYPE LVC_T_STYL to the internal table. Now, for a row and append a column in this nested internal table setting the style as MC_STYLE_ENABLED / MC_STYLE_DISABLED. This will enable the editing of specific columns of a row.
    2. I don't think you have the Header text in a different color.
    3. Summing excluding specific rows is not possible.
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • SQL Developer Data Modeler  "Reports"  Duplicate Columns in Index- Bug

    I am using SQL Data Modeler of SQL Developer - 3.2.20.09
    Problem Description:
    In the "Indexes" section of report generated for a table, column appear twice.
    Steps to Reproduce:
    1. Create an Entity in Modeler: COMPANY, Add attributes COMP_ID and COMP_DESC to it, mark COMP_ID as PK
    2. Engineer it to Relational Model
    3. Go to 'File->Data Modeler->Reports'
    4. Select 'Available reports' = 'Table' and press 'Generate Report'
    5. View the report.
    Indexes shown for the table contains duplicate columns for COMP_ID
    Regards,

    Hi
    I've just tested with SQL Developer 3.2.20.09 and built in Data Modeler 3.1.4.710 with Data Modeler reports 11.2.0.09.87
    There is no duplicate columns for COMP_ID in the report.
    What are your versions? You can check them from Tools->Preferences->Extensions

Maybe you are looking for

  • How to restore a deleted iCloud note from time machine backup?

    The short of it... one of my kids decided they didn't need certain notes, therefore deleted them!!!!  (my fault i did not have notes/synced/off on new device!), but they are important and iCloud is synced across all devices and those notes are gone. 

  • Ipad no sound - hardware issue or not?

    I dropped my ipad before and the screen was cracked. I would assume the sound was damaged by the drop. However, I still have a hope that it might be the software glitches. Two signs support my thoughts: 1. the headphone works. When I plug in, I can h

  • "Aperture 3.0 or later required" error when trying to install 3.2

    I have Aperture 3.1.3, purchased from the app store, running on a MBP with 10.6.8. I want to install the 3.2.4 update. When I try to install, I immediately get this: I am unable to install an update from the app store automatically, because the "curr

  • TS1372 how to restore ipod touch without itunes

    I am extemely frustrated. I have an Ipod touch 3rd Generation 32gb. I was promted by Apple to update my latest IOS to 5.1.1. In doing so Apple has locked up my ipod to the point that it will not update and is stuck on the install usb screen. All thes

  • Manage multiple Domain.sites files

    Is there any cool utility to manage multiple iWeb Domain files ? In .Mac, is that possible to publish the site Site_A based on one Domain file and to publish just after the site Site_B based on another Domain file ?