Select sum(distinct column ) from ....

Hello All,
I have a table the contains ID and size.
An ID identifies a unique object, but it can be repeated. The following is valid:
ID Size
1 3
4 5
5 3
1 3
What I am trynig to do is get the sum of all sizes in the table. I tried this query:
select sum(distinct size) from table;
But it does give the right result since different objects could have the same size. I tried
select sum(size) group by ID;
But it prints to me huge number of IDs and sums the sizes of an ID together. What I want thuogh is to look at the unique rows (without duplicates) and then sum their sizes together and get the result.
Any help would be greatly appreciated.
Thank you
P.S.: Sorry, I am an absolute Oracle/SQl newbie.
Thanks for your help in advance

An ID identifies a unique object, but it can be repeated.Fnord.
I think your data model could withstand some refactoring but what you need to do is:
SELECT sum(size) FROM
  (  SELECT distinct id, size FROM your_table)
/This of course assumes that your duplication is complete and you don't have duplicate IDs with different sizes.
You still ought to check out the concept of UNIQUE constraints though. A database ain't a database without relational integrity.
Cheers, APC

Similar Messages

  • Select row and column from header in jtable

    hello i have a problem to select row and column from header in jtable..
    can somebody give me an idea on how to write the program on it.

    Hi Vicky Liu,
    Thank you for your reply. I'm sorry for not clear question.
    Answer for your question:
    1. First value of Open is item fiels in Dataset2 and this value only for first month (january). But for other month Open value get from Close in previous month.
    * I have 2 Dataset , Dataset1 is all data for show in my report. Dataset2 is only first Open for first month
    2. the picture for detail of my report
    Detail for Red number:
    1. tb_Open -> tb_Close in previous month but first month from item field in Dataset2
    espression =FormatNumber(Code.GetOpening(Fields!month.Value,First(Fields!open.Value, "Dataset2")))
    2. tb_TOTAL1 group on item_part = 1
    expression =FormatNumber(Sum(CDbl(Fields!budget.Value)))
    3. tb_TOTAL2 group on item_part = 3 or item_part = 4
    expression =FormatNumber(Sum(CDbl(Fields!budget.Value)) + ReportItems!tb_TOTAL1.Value )
    4. tb_TOTAL3 group on item_part = 2
    expression =FormatNumber(Sum(CDbl(Fields!budget.Value)) - ReportItems!tb_TOTAL2 .Value)
    5. tb_Close -> calculate from tb_TOTAL3 - tb_Open
    expression =FormatNumber(Code.GetClosing(ReportItems!tb_TOTAL3.Value,ReportItems!tb_Open.Value))
    I want to calculate the value of tb_Open and tb_Close. I try to use custom code for calculate them. tb_close is correct but tb_Open is not correct that show value = 0 .
    My custom code:
    Dim Shared prev_close As Double
    Dim Shared now_close As Double
    Dim Shared now_open As Double
    Public Function GetClosing(TOTAL3 as Double,NowOpening as Double)
        now_close = TOTAL3 + NowOpening
        prev_close = now_close
        Return now_close
    End Function
    Public Function GetOpening(Month as String,NowOpen as Double)
        If Month = "1" Then
            now_open = NowOpen
        Else    
            now_open = prev_close
        End If
        Return now_open
    End Function
    Thanks alot for your help!
    Regards
    Panda A

  • Selecting a common column from multiple tables

    hi All.
    can you guys advice a best way of doing the following
    i have 60 table sin a schema 30 with a and 30 with b
    all this 60 tables have a common column Load_dt
    how can i get
    tablename,count(records),max(load_dt) from all the tables

    declare
        max_dt some_table.load-dt%type;
        cnt_recs pls_integer;
    begin
        for lrec in ( select table_name from user_tab_columns where column_name = 'LOAD_DT' )
        loop
            execute immediate 'select count(*), max(load_dt) from '||lrec.table_name       
                  into cnt_recs, max_dt;
            dbms_output.put_line(lrec.table_name||' has '||cnt_recs||' records, max_load_dt='||max_dt);
        end loop;
    end;
    /you may want/need to apply a format mask in a TO_CHAR() call on max_dt.
    There are other approaches to getting the data out - it depends on how you want to process it subsequently.
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • Data Merge - Is there a way to selectively hide rows/columns from layouts based on cell values?

    I'm using data merge to generate pages from a product spreadsheet. The complication is, some columns should exist for some products (like "qty per bundle") but need to be hidden for others. Is there a way for InDesign to automatically include or remove rows for some pages but not others, based on something like "qty = 0"?

    For logic-based data merge, I use Em Software's product InData.
    Depending upon the design, ID's merge can remove blank fields thereby removing there paragraph or position on a line. Unless, of course, you have static text along with it. Which I almost always do. that's why I use Em Software's solution. It has a trial version. One needs to get familiar with the language statements. But for me it was worth the price and learning curve.
    And there are other plug-ins but for "simple" merging they are overkill in my circumstances (and so cost more).
    Mike

  • Sum distinct by multiple key

    How do I sum the first observation of a field from many observations with the same key. (sum distinct by multiple key)?

    And if it fits your requirements:
    select column, sum(distinct column)
    from table
    group by column;
    -cf
    (btw, how do you make your SQL appear in Courier font?)
    Message was edited by:
    [email protected]

  • Access the results of the following query in Java? SELECT sum(COL_X) FROM TABLE_A

    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery(
    "SELECT sum(COL_X) FROM TABLE_A");
    int = rset.getInt("sum(NUM_CUSTOMER)");This is obviously wrong. Could someone please help me a little on the syntax? I just want to be able to get the sum of the numeric values in a column without having to loop through a ResultSet and manually adding up the total. My question is how can I access the results of this query by assigning the sum to a java variable?

    Hi,
    Probably the easiest way is to use an alias for the sum column, i.e.:
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery(
    "SELECT SUM(COL_X) MY_SUM FROM TABLE_A"
    int i = rset.getInt("MY_SUM");null

  • Distinct Select on Varchar2 Column

    Hi,
    I have a unique problem - (no pun intended) - pls bare with me while I explain...
    I have the following table (tbl_party) :
    p_num VARCHAR2(30)
    p_name VARCHAR2(100)
    p_cert NUMBER
    i_cat NUMBER
    p_stat DATE
    Test 1.
    When I do a select count(distinct(p_num)) from tbl_party;
    Return 6298 rows
    Test 2.
    When I do a select distinct(p_num) from tbl_party;
    Return 6298 rows
    Test 3.
    When I do a select distinct(p_num), p_cert from tbl_party;
    Return 6300 rows???
    Can some1 pls enlighten me if there is a limitation on distinct/unique when using it on VARCHAR2??
    Thanks in advance.
    Jaco

    I think in third test you get 6300 not 6298 because there are two additional value for the same values in p_num column.
    See this:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as
      2  (select 1 as col1, 'abc' from dual
      3  union all
      4  select 2, 'bcd' from dual
      5  union all
      6* select 1, 'bcd' from dual)
    SQL> ed
    Wrote file afiedt.buf
      1  with t as
      2  (select 1 as col1, 'abc' from dual
      3  union all
      4  select 2, 'bcd' from dual
      5  union all
      6  select 1, 'bcd' from dual)
      7* select distinct(col1) from t
    SQL> /
          COL1
             1
             2
    SQL> ed
    Wrote file afiedt.buf
      1  with t as
      2  (select 1 as col1, 'abc' from dual
      3  union all
      4  select 2, 'bcd' from dual
      5  union all
      6  select 1, 'bcd' from dual)
      7* select count(distinct(col1)) from t
    SQL> /
    COUNT(DISTINCT(COL1))
                        2
    SQL> ed
    Wrote file afiedt.buf
      1  with t as
      2  (select 1 as col1, 'abc' as col2 from dual
      3  union all
      4  select 2, 'bcd' from dual
      5  union all
      6  select 1, 'bcd' from dual)
      7* select distinct(col1), col2 from t
    SQL> /
          COL1 COL
             1 bcd
             1 abc
             2 bcdAs you can see there are two values in col2 for one value in col1. That's why you get 6300 not 6298 even if you use DISTINCT.
    Peter D.

  • Select LONG column from Remote table

    Hi to all.
    I have the following problem: I can't select a LONG column from remote database, when there are Join operation in the query. Example:
    SELECT long_column FROM remote_table@DB
    -> that's OK, but:
    SELECT long_column FROM remote_table@DB INNER JOIN remote_table2@DB ON ...
    -> returns: "ORA-00997: Illegal use of LONG datatype"
    I cannot even perform (because there a LONG column in the joined table):
    SELECT nonlong_column FROM remote_table@DB INNER JOIN remote_table2@DB ON ...
    That's very strange to me because:
    SELECT long_column FROM local_table INNER JOIN local_table2 ON ...
    -> is OK!
    Can someone help me to SELECT a long column from remote in SELECT query with JOIN clause!
    Thanks a lot!

    Hi
    "Distributed queries are currently subject to the restriction that all tables locked by a FOR UPDATE clause and all tables with LONG columns selected by the query must be located on the same database. " by otn docs.
    I have no idea.
    Ott Karesz
    http://www.trendo-kft.hu

  • How to get sum distinct in the cube. Is it possible.

    Here is the scenario.
    One report has many countries on it but only one amount.
    For a particular day we have the following data in the fact.
    TRANSACTION_DAY_NO
    Country
    Total Amount
    19900101
    US
    34
    19900101
    IND
    35
    19900101
    IND
    36
    19900101
    AUS
    37
    19900101
    UNKNOWN
    38
    19900101
    UNKNOWN
    39
    19900101
    UNKNOWN
    40
    19900101
    UNKNOWN
    41
    19900101
    UNKNOWN
    42
    19900101
    UNKNOWN
    43
    19900101
    US
    43
    19900101
    IND
    42
    There are 2 dimensions on the cube.
    Date, Country.
    I am not sure how to build a cube on this data.
    with t as (
    select 19900101 transaction_Day_no,     'US' country_no,     34 total_amount from dual union all
    select 19900101,    'IND',         35  from dual union all
    select 19900101,    'IND',         36  from dual union all
    select 19900101,    'AUS',         37  from dual union all
    select 19900101,    'UNKNOWN',    38  from dual union all
    select 19900101,    'UNKNOWN',    39  from dual union all
    select 19900101,    'UNKNOWN',    40  from dual union all
    select 19900101,    'UNKNOWN',    41  from dual union all
    select 19900101,    'UNKNOWN',    42  from dual union all
    select 19900101,    'UNKNOWN',    43  from dual union all
    select 19900101,    'US',    43  from dual union all
    select 19900101,    'IND',    42  from dual
    select transaction_day_no, country_no, sum(distinct total_amount) from t
    group by cube(transaction_Day_no, country_no);
    I am using AWM. I have tried to build by selecting the following aggregate for the cube
    max for the country_no and
    sum for the tranaction_Day_no
    But i am getting incorrect results.
    If i select sum for both country_no and transaction_no then also i get incorrect results.
    Please help me solve this issue.
    thanks

    Thanks for all your reply's.
    The problem is that i have duplicates because
    One report can have many customers.
    One customer can have many countries.
    One customer can have many reports.
    If i include the report number in the above data and do a sum on both day and report_number and max for everything else then everything is find and i am getting correct results.
    But if i take out the report dimension then i am stuffed.
    Also the problem is that i can't have one big dimension for the report as the number of reports are in access of 300M
    We have tried to solve this issue by having the fullowing.
    Dummy Cube.
    This has all the combination of all the dimension in the fact table with the report dimension as only one row(-1)
    Report Dimension for each Quarter(34M rows each)
    Quarter Cube is build.
    Then add the values from all the Quarter Cube with the Dummy Cube.
    Tried for 2 Quarter and its working fine results are correct as well.
    Only problem is that its taking a long time to build the cube because of the report dimension.
    I am trying to find a way to remove the report dimension but still use it. As we only use report dimension at level 'ALL'
    But if we do aggregation at 'ALL' level the answers are wrong again.
    Thanks for looking into this and taking time to reply.
    Regards
    Alvinder

  • Pls help : How To select fields and data from user_table for each tablename

    Please help with the query to generate a output which selects the code,meaning,inuse for each table in the user_table that has "CODED" as a part of table name.
    User table has some 800 table that contains CODED in the tablename.
    Desc of the table:
    DESCPTION:
    Name Null? Type
    SHORT_NAME NOT NULL VARCHAR2(20)
    CODE NOT NULL VARCHAR2(4)
    MEANING NOT NULL VARCHAR2(240)
    IN_USE VARCHAR2(1)
    NOTES VARCHAR2(2000
    UNITS NOT NULL VARCHAR2(1)
    AMOUNT NOT NULL VARCHAR2(3)
    CONVERTED VARCHAR2(1)
    RUN_NAME VARCHAR2(30)
    But all the table have code, meaning,in_use fields.
    O/P format :
    TABLE_NAME CODE MEANING IN_USE
    Help me pls.

    Not 100% sure what you want. If you want to see all the tables that have all three of those columns, then you could do something like:
    SELECT table_name, 'CODE', 'MEANING', 'IN_USE'
    FROM user_tab_columns
    WHERE column_name = 'CODE' and
          table_name like '%CODED%'
    INTERSECT
    SELECT table_name, 'CODE', 'MEANING', 'IN_USE'
    FROM user_tab_columns
    WHERE column_name = 'MEANING' and
          table_name like '%CODED%'
    INTERSECT
    SELECT table_name, 'CODE', 'MEANING', 'IN_USE'
    FROM user_tab_columns
    WHERE column_name = 'INUSE' and
          table_name like '%CODED%'If you want to select those three columns from each of the tables, then you could do something like this.
    Create a command file called, for example, makesel.sql that looks like:
    SET PAGES 0 lines 500 trimspool on feedback off;
    spool sel.sql;
    prompt spool selout.txt;
    SELECT 'SELECT '''||table_name||''', code, meaning, in_use FROM '||
           table_name||';'
    FROM (SELECT table_name
          FROM user_tab_columns
          WHERE column_name = 'CODE' and
                table_name like '%CODED%'
          INTERSECT
          SELECT table_name
          FROM user_tab_columns
          WHERE column_name = 'MEANING' and
                table_name like '%CODED%'
          INTERSECT
          SELECT table_name
          FROM user_tab_columns
          WHERE column_name = 'INUSE' and
                table_name like '%CODED%')
    prompt 'spool off;'
    spool off;
    @sel.sqlAt the sqlplus prompt run the file using @makesel.sql. This will create another file called sel.sql containing the commands to select those three columns from each table that has all three columns, then after the new file is created, it runs the file (@sel.sql). The output will be spooled to a file called selout.txt.
    HTH
    John

  • How do I select a date column and display the millesecond along with it.

    I am trying to select a date column from database and want to
    display millesecond with it. How do I do this. I am aware of
    the "alter session set NLS_DATE_FORMAT = 'MM/DD/YY HH:MI:SS'"
    command. However, I do not know how to display this with the
    millesecond.
    Thanks for all the help.

    Example:
    SQL> CREATE OR REPLACE JAVA SOURCE
      2  NAMED "MyTimestamp"
      3  AS
      4  import java.lang.String;
      5  import java.sql.Timestamp;
      6 
      7  public class MyTimestamp
      8  {
      9  public static String getTimestamp()
    10   {
    11   return (new
    12   Timestamp(System.currentTimeMillis())).toString();
    13   }
    14   };
    15  /
    Java created.
    SQL> CREATE OR REPLACE FUNCTION my_timestamp
      2    RETURN VARCHAR2
      3  AS LANGUAGE JAVA
      4  NAME 'MyTimestamp.getTimestamp() return java.lang.String';
      5  /
    Function created.
    SQL> CREATE TABLE test_time
      2    (date_col VARCHAR2 (23))
      3  /
    Table created.
    SQL> INSERT INTO test_time (date_col)
      2  SELECT my_timestamp
      3  FROM   dual
      4  /
    1 row created.
    SQL> SELECT date_col
      2  FROM   test_time
      3  /
    DATE_COL
    2001-11-02 14:58:51.766

  • Select count distinct

    Hi, Anybody can help !
    I have problem with select count distinct.
    example :
    select distinct custid from order_h
    total result : 141 rows selected.
    but :
    select count(distinct custid) from order_h
    result :
    COUNT(DISTINCTCUSTID)
    140
    Why the total difference, for listing 141 but for count 140 ?
    Is my statement wrong ? How to use count and distinct ?
    Thank's

    Look here..
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/functions032.htm#i82697
    Bye
    Acr

  • Calculations with Sum Distinct Aggregations

    Hi,
    I got a problem. I use in one of my analysis a Pivot Table. One of my measures which I sum up has multiple entries in my tables. So I decided to use a Sum Distinct aggregation. The Sum Distinct aggregation works perfect. But when I want to do basic calculations with the measure I get wrong results. It seems that in the calculation the aggregation is just a SUM and not a Sum Distinct. In the calculation I subtract the measure from a constant. But I only get wrong result with the redundant entries.
    Pivot table:
    Name --- Days available --- Days worked (measure)--- Days left (= Days available minus Days worked)
    Mr. A --- 60 --- 5 ---- 55
    Mr. A --- 60 --- 10 --- 50
    Mr. A --- 60 --- 35 --- 25
    ---------- Sum ---- 50 --- -45 (wrong result)
    Is there a solution to this problem?
    thx
    Edited by: Backlit on 31.07.2011 11:29

    Hi,
    and thx for the quick answer. But unfortunately the Server Complex Aggregate aggregation doesn't solve my problem. I also think I didn't express my self clear enough.
    My problem is, that I have the same tuple multiple times in my database table. When I sum this data up - I get wrong results. To avoid this I used the SUM DISTINCT aggregation. This worked very fine. But now I'm facing an other problem. I have to perform a simple subtraction.
    I have a fixed non measure value. I have to subtract the Sum Distinct measure from this fix value for a specified time periode.
    it looks like this:
    Pivot table
    Name --- Days available(non measure) --- Work date --- Days worked (SUM) measure --- Days worked SUM(Distinct) measure
    Mr.A --- 40 --- 1.5 --- 6 --- 3
    Mr.A --- 40 --- 1.5 --- 6 --- 3
    Mr.A --- 40 --- 2.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    Mr.A --- 40 --- 3.5 --- 6 --- 3
    SUM ---- 40 --- .... ---- 6 --- 3 -> Days left: 34 (wrong result - should be 37)
    I get the right result - but when I now try to calculate "Days available - Days worked SUM(Distinct)" I get the same results like I would do the calculation with
    "Days available - Days worked SUM".
    And is there a way to hide the multiple values in Days worked?
    thx

  • Select distinct('more than one column') from ....

    Why does this sql statement not work:
    select distinct(column_a, column_b, column_c), empno
    from emp;
    How can I 'select distinct' using more than one column.

    Actually, DISTINCT applies to all columns in the result.
    Distinct is not a function, you cannot do distinct(column1, column2, ...).
    As a matter of fact it doesn't make sense to expect distinct applies to only one column, because you do not specify any criteria on how to select the values for the second column.
    A final note: you can do distinct(column1), column2, but this will still apply to both columns!
    Here're some examples that will all return both rows from the set, where set is: (1,1), (1,2):
    select distinct val1, val2
    from
    select 1 as val1, 1 as val2 from dual
    union all
    select 1 as val1, 2 as val2 from dual
    select distinct val1||'-'||val2
    from
    select 1 as val1, 1 as val2 from dual
    union all
    select 1 as val1, 2 as val2 from dual
    select distinct(val1), val2 -- this is very misleading. distinct still applies to both columns
    from
    select 1 as val1, 1 as val2 from dual
    union all
    select 1 as val1, 2 as val2 from dual
    Edited by: user4010726 on Dec 1, 2009 11:06 AM
    Edited by: user4010726 on Dec 1, 2009 11:07 AM

  • Selecting fewer columns from cached results

    If I'm reading the docs right, I should be able to create a request with X number of columns to populate the cache, so that a subsequent request that has a direct subset of those columns would hit the cache. That's not what I'm seeing.
    I have four fact columns in the RPD. The first three, Sales, Cost, and Units, are coming straight from the Physical Layer. The fourth, Profit, is a subtraction of Sales minus Cost.
    Here's what I'm seeing:
    1a. Log In to Answers
    1b. Create Query: Year, Sales, Cost, Profit - this populates the cache.
    1c. Log Out of Answers
    1d. Log back in to Answers
    1e. Create Query: Year, Sales, Cost - this query does NOT hit that cache entry.
    2a. Close all cursors (under Administration...Manage Sessions)
    2b. Log Out
    2c. Purge Cache
    3a. Log In to Answers
    3b. Create Query: Year, Sales, Cost, Units - this populates the cache.
    3c. Log Out of Answers
    3d. Log back in to Answers
    3e Create Query: Year, Sales Cost - this query DOES hit the cache entry.
    The only difference between the two sequences is that one references a calculated column (Profit) and the other does not.
    Incidentally, I've tested this with Profit defined first as a subtraction of the logical columns, and then again as a subtraction of the physical columns, with the same behavior observed both ways.
    Can someone please confirm this behavior and suggest a reason why it should occur?

    Turribeach, here are the Session Logs for each of the four requests. I've interspersed the steps between double-rows of = signs.
    ===================================================
    ===================================================
    STEP 1A: Log In
    STEP 1B: Create request - Year, Sales, Cost, Profit
    ===================================================
    ===================================================
    +++Analyst:320000:320001:----2009/01/15 09:13:51
    -------------------- Logical Request (before navigation):
    RqList
    Times.Year as c1 GB,
    Sales:[DAggr(~Base Facts.Sales by [ Times.Year, Times.Year End Date] )] as c2 GB,
    Cost:[DAggr(~Base Facts.Cost by [ Times.Year, Times.Year End Date] )] as c3 GB,
    Sales:[DAggr(~Base Facts.Sales by [ Times.Year, Times.Year End Date] )] - Cost:[DAggr(~Base Facts.Cost by [ Times.Year, Times.Year End Date] )] as c4 GB,
    Times.Year End Date as c5 GB
    OrderBy: c5 asc
    +++Analyst:320000:320001:----2009/01/15 09:13:51
    -------------------- Sending query to database named BIEE_TRAIN (id: <<1690>>):
    WITH
    SAWITH0 AS (select sum(round(T68.COST , 2)) as c1,
    sum(round(T68.SALES , 2)) as c2,
    T61.YEAR as c3,
    T61.YEAR_END_DATE as c4
    from
    GLOBAL_ADMIN.BI_D_TIME T61,
    GLOBAL_ADMIN.BI_F_SALES T68
    where ( T61.MONTH = T68.MONTH )
    group by T61.YEAR, T61.YEAR_END_DATE)
    select distinct SAWITH0.c3 as c1,
    SAWITH0.c2 as c2,
    SAWITH0.c1 as c3,
    SAWITH0.c2 - SAWITH0.c1 as c4,
    SAWITH0.c4 as c5
    from
    SAWITH0
    order by c5
    +++Analyst:320000:320001:----2009/01/15 09:13:52
    -------------------- Query Result Cache: [59124] The query for user 'Analyst' was inserted into the query result cache. The filename is 'C:\OracleBIData\cache\NQS_TRAINING_733424_33231_00000000.TBL'.
    ===================================================
    ===================================================
    STEP 1C: LOG OUT
    STEP 1D: LOG IN
    STEP 1E: Create request - Year, Sales, Cost
    ===================================================
    ===================================================
    +++Analyst:330000:330001:----2009/01/15 09:17:41
    -------------------- Logical Request (before navigation):
    RqList
    Times.Year as c1 GB,
    Sales:[DAggr(~Base Facts.Sales by [ Times.Year, Times.Year End Date] )] as c2 GB,
    Cost:[DAggr(~Base Facts.Cost by [ Times.Year, Times.Year End Date] )] as c3 GB,
    Times.Year End Date as c4 GB
    OrderBy: c4 asc
    +++Analyst:330000:330001:----2009/01/15 09:17:41
    -------------------- Sending query to database named BIEE_TRAIN (id: <<2062>>):
    select T61.YEAR as c1,
    sum(round(T68.SALES , 2)) as c2,
    sum(round(T68.COST , 2)) as c3,
    T61.YEAR_END_DATE as c4
    from
    GLOBAL_ADMIN.BI_D_TIME T61,
    GLOBAL_ADMIN.BI_F_SALES T68
    where ( T61.MONTH = T68.MONTH )
    group by T61.YEAR, T61.YEAR_END_DATE
    order by c4
    +++Analyst:330000:330001:----2009/01/15 09:17:41
    -------------------- Query Result Cache: [59124] The query for user 'Analyst' was inserted into the query result cache. The filename is 'C:\OracleBIData\cache\NQS_TRAINING_733424_33461_00000001.TBL'.
    *** Note: At this point, there are indeed TWO entries in the cache. ***
    ===================================================
    ===================================================
    STEP 2A: Close all cursors
    STEP 2B: Log Out
    STEP 2C: Purge the cache
    STEP 3B: Create request - Year, Sales, Cost, Units
    ===================================================
    ===================================================
    +++Analyst:350000:350001:----2009/01/15 09:23:18
    -------------------- Logical Request (before navigation):
    RqList
    Times.Year as c1 GB,
    Sales:[DAggr(~Base Facts.Sales by [ Times.Year, Times.Year End Date] )] as c2 GB,
    Cost:[DAggr(~Base Facts.Cost by [ Times.Year, Times.Year End Date] )] as c3 GB,
    Units:[DAggr(~Base Facts.Units by [ Times.Year, Times.Year End Date] )] as c4 GB,
    Times.Year End Date as c5 GB
    OrderBy: c5 asc
    +++Analyst:350000:350001:----2009/01/15 09:23:18
    -------------------- Sending query to database named BIEE_TRAIN (id: <<2399>>):
    select T61.YEAR as c1,
    sum(round(T68.SALES , 2)) as c2,
    sum(round(T68.COST , 2)) as c3,
    sum(round(T68.UNITS , 0)) as c4,
    T61.YEAR_END_DATE as c5
    from
    GLOBAL_ADMIN.BI_D_TIME T61,
    GLOBAL_ADMIN.BI_F_SALES T68
    where ( T61.MONTH = T68.MONTH )
    group by T61.YEAR, T61.YEAR_END_DATE
    order by c5
    +++Analyst:350000:350001:----2009/01/15 09:23:19
    -------------------- Query Result Cache: [59124] The query for user 'Analyst' was inserted into the query result cache. The filename is 'C:\OracleBIData\cache\NQS_TRAINING_733424_33798_00000002.TBL'.
    ===================================================
    ===================================================
    STEP 3C: LOG OUT
    STEP 3D: LOG IN
    STEP 3E: Create request - Year, Sales, Cost
    ===================================================
    ===================================================
    +++Analyst:360000:360001:----2009/01/15 09:24:36
    -------------------- Logical Request (before navigation):
    RqList
    Times.Year as c1 GB,
    Sales:[DAggr(~Base Facts.Sales by [ Times.Year, Times.Year End Date] )] as c2 GB,
    Cost:[DAggr(~Base Facts.Cost by [ Times.Year, Times.Year End Date] )] as c3 GB,
    Times.Year End Date as c4 GB
    OrderBy: c4 asc
    +++Analyst:360000:360001:----2009/01/15 09:24:36
    -------------------- Cache Hit on query:
    Matching Query:     SET VARIABLE QUERY_SRC_CD='Report';SELECT "Time Dimension"."Year" saw_0, "Base Measures".Sales saw_1, "Base Measures".Cost saw_2, "Base Measures".Units saw_3 FROM Global ORDER BY saw_0
    Created by:     Analyst
    +++Analyst:360000:360001:----2009/01/15 09:24:36
    -------------------- Query Status: Successful Completion
    +++Analyst:360000:360001:----2009/01/15 09:24:36
    *** Note: At this point, there is ONE entry in the cache. ***

Maybe you are looking for

  • Loading VRML 1.0 files in Java 3D

    Hi all, Does anyone have a successful experience loading VRML 1.0 file into Java 3D as a scene graph? While I think it's too complicated to write my own loader, is there any existing loader available for this task? I've tried 2 VRML loaders, but neit

  • Need to clear report

    Hi, I have some select lists with submit(they are of submit type because they are dependent) and a submit button.On click of this button, a report neeeds to be generated based on the selected values. However, as the select lists are of type submit,it

  • Deployment Exception after restore BPM Project from Consolidation system

    Hi everybody, in order to restore my bpm project in NWDS i overwrite all files under "_comp" folder with the same files from the cons_track After that i could build and activate the project but i can not deploy it to the application server. The old p

  • Macbook Screen goes blank

    This morning I upgraded to iTunes 10.1. I decided to sync my iPhone 3GS running 4.0 OS, and my MacBook Pro screen goes completely black, like its in hibernation. When I disconnect my iPhone it goes back to normal. I'm syncing my iPad right now with n

  • MSVC V5.0 IDE and CINs - custom build ??

    Hi everyone, does anyone know how to solve the "custom build" problem under NT? When I try to build the LVS-file Visual stops at "performing custom build step" with an error. I've read the CIN reference manual, NI's knowledge base article 1F3ARTNV, M