Aggregate and Summary tables

Hi guys
I have facts ( FINISHINGPOSITION) having dimensions datedim,JOCKEY_KEY,tracksdim
FINISHINGPOSITION
DATE_KEY
JOCKEY_KEY
TRACKS_KEY
datedim
ACTUALDATE
YEAR
QUARTER
MONTH
WEEK
DAYOFYEAR
DAYOFMONTH
JOCKEY_KEY
JOCKEY_KEY
JOCKEYCODE
JOCKEYNAME
tracksdim
TRACKCODE
TRACKSHORTNAME
TRACKLONGNAME
how can I create summary tables and aggregate table based on these fact and dimensions
Thanks in advance
Vikramjit

Hi,
Where Mustafa used COUNT (*), just use SUM (nbrinparty) instead.
Also, you need to GROUP BY both fltnbr and fltdate, and join by both columns as well.
Since there can be flights with no meals (like fltnbr 003), the join has to be an outer join.
So what you want is something like:
SELECT      f.fltdate
,      f.fltnbr
,      flight_total
,      NVL (meal_total, 0)     AS meal_total
FROM       (
          SELECT        fltdate,  fltnbr
          ,       SUM (nbrinparty)      AS meal_total
          FROM       meals
          GROUP BY  fltdate,  fltnbr
     ) m
          SELECT       fltdate,  fltnbr
          ,       SUM (nbrinparty)      AS flight_total
          FROM       flights
          GROUP BY  fltdate,  fltnbr
     ) f
WHERE     m.fltdate (+)      = f.fltdate
AND     m.fltnbr  (+)     = f.fltnbr;Alternatively, you could do just one sub-query, to get the sum from either one of the tables. In the main query, get the sum from the other table and join, like this:
ITH     got_meal_total     AS
     SELECT        fltdate,  fltnbr
     ,       SUM (nbrinparty)      AS meal_total
     FROM       meals
     GROUP BY  fltdate,  fltnbr
SELECT      f.fltdate
,      f.fltnbr
,      SUM (f.nbrinparty)          AS flight_total
,      NVL (SUM (m.meal_total), 0)     AS meal_total
FROM           flights        f
LEFT OUTER JOIN  got_meal_total      m  ON       f.fltdate     = m.fltdate
                             AND   f.fltnbr     = m.fltnbr
GROUP BY  f.fltdate
,       f.fltnbr
;Edited by: Frank Kulash on Oct 21, 2010 6:52 AM
Added one-sub-query option

Similar Messages

  • Planner profile SAPFAGL  and Summary Table is FAGLFLEXT

    Dear Friends,
    I am not able to enter plan data (Version 1) for Planner profile SAPFAGL and Summary Table is FAGLFLEXT.
    Whenever i try to enter plan data, got error message GLS0 is not available. Why..?
    Is there way to enter plan data (version 1) in Summary Table is FAGLFLEXT.....?  We are in ECC 6.0. Please help me. Thanks in Advance.
    I will give more points for this solution.
    VK.

    Hi VK,
    Please find the details.
    You must/can start the selection with the following parameters:
    1. Company Code (required entry field)
    Enter the company code of the accruals account to be checked.
    2. G/L Account (required entry field)
    Enter the accruals account to be checked.
    3. Posting Period/Year To (required entry fields)
    Enter the period to be checked in posting periods.
    4. Indicator: Only Not Cleared Documents (optional entry field)
    If you set this indicator, only actions with an incomplete revenue recognitions (revenue postings and billing document postings) are taken into account, because only these postings are necessary for an explanation of the balance. However, to trace the balance, it may be necessary for the system to also display completed (cleared) revenue recognition processes. In this case, the indicator must not be set, which generally has a negative effect on runtime.
                  Note: The periods in the SD tables are determined by the posting date in the VBREVE and VBREVR tables.
    If the necessary selection parameters were set and the report is started, a split screen appears.
    1. Upper part of the screen - Balances
                  This is where different balances are displayed for each currency in the form of a calculation. The calculation consists of the following:
    a) Balance from revenue recognitions
    This balance is determined from the posted revenue lines in the VBREVE table. These are the revenue amounts that were recognized in the selected period according to SD.
    b) - Balance from billing documents
    This balance is determined from the posted, billing items in the VBREVR table that are relevant for revenue recognition. These are the revenue amounts that were deferred in the selected period according to SD.
    c) - Balance from other postings
    If not only the revenue recognition process (VF44/VF46/VF01/VF02/VFX3) but also other FI transactions such as FB01 posted to the selected accruals account, then these values are not known in SD (VBREVx tables). This appears to result in an inconsistency between SD and FI, but there really is no inconsistency at all.
                           The system now takes the balance from revenue recognitions, minus the balance from billing documents, and compares the result with the total balance in FI. If there is a difference, the other postings on the selected accruals account for the selected period in FI are read. The result is the 'Balance from other postings.' If this balance is now also subtracted from the previous result, the determined value must result in the total balance from FI.
    d) Total balance
    This is the balance of the accruals account for the selected period that was determined in FI. If you now take the balance of revenue recognitions, minus the balance of billing documents and minus the balance of other postings, then the result should reflect the total balance in FI. If this is not the case, this result must be analyzed further, since there is an inconsistency between FI and SD. Transactions VF47 and VF45 (among others) are available for further analysis.
    2. Lower part of the screen - VBREVx rows (SD tables)
    This is where SD detail data (VBREVx tables) concerning the selection at sales and distribution document item level is listed (the total in the 'Balance' column must equal the total balance in FI). If the totals are different, there are inconsistencies between FI and SD.
                  The following values are displayed for the items:
    a) Billed revenues
    For the relevant document item, the revenue billed in the selected period is displayed, based on the billing items relevant for revenue recognition (this is the revenue that was posted to the selected accruals account). Data is retrieved using the reference line table (VBREVR).
    b) Recognized revenues
    For the relevant document item, the revenue recognized in the selected period is displayed, based on the VBREVE table (this is the revenue that was posted to the selected accruals account). Data is retrieved using the revenue line table (VBREVE).
    c) Accrued total value
    This is the revenue amount of the document item to be recognized at accruals account level. Data is retrieved using the control row table (VBREVK) in which the relevant accrued total value is updated.
    d) Balance
    This balance at document item level is calculated by subtracting the recognized revenues from the billed revenues.
    3. In addition to the screen described above, you can also receive more detailed information. The functions for the displayed ALV buttons are as follows:
    a) Billing documents (F5)
    This is where the billing items that are relevant for the selected document item are displayed. A jump to the respective billing document is also possible.
    b) Other FI documents (F6)
    If balances exist from other postings, the accounting documents which resulted in these balances are displayed here. A jump to the respective accounting document is also possible.
    c) Overview (F7)
    This is where the revenue recognition data that is relevant for the selected document item is listed. This is done in Transaction VF45 - 'Revenue Recognition: Overview.'
    Implementation
    1. Use Transaction SE38 to create the following program:
                        Name.....: SDRRAV53
           Title....: Compare report for revenue recognition
                         Create without a top include.
                      Attributes
          Type.............: Executable program
          Status...........: SAP Standard Production Program
          Application......: Sales
           Development class: VFE
    2. Use Transaction SE11 to create the following structures in the VFE development class:
    a) Data type (structure): VBREVBSIS
    Short text...........: Output Structure for SDRRAV53
    Enhancement category.: can be enhanced (deep)
    (from Release 4.70)
                           Component  Component type  Ref field  Ref table
    BUKRS      BUKRS
    BELNR      BELNR_D
    GJAHR      GJAHR
    HKONT      HKONT
    BUDAT      BUDAT
    WAERS      WAERS
    MONAT      MONAT
    SHKZG      SHKZG
    WRBTR      WRBTR          WAERS      VBREVBSIS
    ZUONR      DZUONR
    TCODE      TCODE
    AWTYP      AWTYP
    AWKEY      AWKEY
    b) Data type (structure): VBREVDETAIL
    Short text...........: Detailed Structure for SDRRAV53
    Enhancement category.: can be enhanced (character-type or numeric)
    (as of Release 4.70)
                           Component     Component type  Ref field  Ref table
    VBELN        VBELN
    POSNR        POSNR
    WAERS        WAERS
    VBREVR_WRBTR  WRBTR          WAERS      VBREVDETAIL
    VBREVE_WRBTR  WRBTR          WAERS      VBREVDETAIL
    VBREVK_WRBTR  WRBTR          WAERS      VBREVDETAIL
    VBREVK_BAL    WRBTR          WAERS      VBREVDETAIL
    c) Data type (structure): VBREVSALDO
    Short text...........: Balance Table for SDRRAV53
    Enhancement category.: can be enhanced (character-type or numeric)
    (as of Release 4.70)
                           Component     Component type  Ref field  Ref table
    WAERS        WAERS
    SALDO        WRBTR           WAERS      VBREVSALDO
    ORDERSALDO    WRBTR          WAERS      VBREVSALDO
    FAKTURASALDO  WRBTR          WAERS      VBREVSALDO
    RESTSALDO    WRBTR           WAERS      VBREVSALDO
    d) Data type (structure): VBREVINVOICE
    Short text...........: Billing Data for SDRRAV53
    Enhancement category.: can be enhanced (character-type or numeric)
    (as of Release 4.70)
                           Component  Component type  Ref field  Ref table
    VBELN      VBELN_VF
    POSNR      POSNR
    WAERS      WAERS
    WRBTR      WRBTR          WAERS      VBREVINVOICE
    3. Implement the source code attached at the end. Use the "Note Assistant" to do this.
    4. Add the following text elements to the SDRRAV53 report:
    a) Selection texts
                           Name     Text                        Dictionary Ref
    P_BUKRS  Company Code                'X'
    P_HKONT  G/L Account                'X'
    P_OPEN   only Not Cleared Documents  ' '
    b) Text symbols
                           Sym Text                                  dLen mLen
    D01 Total Bal                              11  40
    D02 Balance from Revenue Recognitions_____ 35   40
    D03 Balance from Billing Documents________ 33   40
    D04 - Balance from Other Postings__        33  40
    D05 _____________________________          29   40
    D06 Curr                                    7    7
    D07 Bals                                    6    6
    D24 Bal                                    5   18
    D25 Recognized Revenue                    18   30
    D26 Accrued total value                    25  40
    D27 Billed Revenues                        18  40
    E01 Period                                  8    8
    E02 Acct                                    5    5
    E03 Control                                9    9
    E04 Posting Period/Year                    20  20
    E05 To                                      3    3
                  Start Transaction SE38 or SE80. Under the menu option "Goto" you will find the menu option "Text elements." Here you can make the changes listed above.
    5. Create the GUI statuses INVOICE and STANDARD.
    a) Copy the STANDARD statuses from the SAPLSALV program and remove the following FCODES: &ALL, &SAL, &NFO, &NTE, &CRB, &CRE, &ABC, &CRL, &CRR, &XPA, &EB9, &RNT_PREV, &OMP, &XML.
    b) Add the following functions to the STANDARD status in the new program:
                           FCODE DETA
                           F-key  Function text      Icon name      Info text
    F5    Billing documents  ICON_OVERVIEW  Billing documents
                           FCODE REST
                           F-key  Function text       Icon name       Info text
    F6     Other FI documents  ICON_FINANCING  Other FI documents
                           FCODE VF45
                           F-key  Function text  Icon name    Info text
    F7    Overview       ICON_PERIOD  Revenue recognition overview
    6. Use Transaction SE93 to create the following transaction:
          Transaction code.: VF48 (Report transaction)
          Development class: VFE
          Transaction text.: Revenue recognition: Compare report
          Program..........: SDRRAV53
           Selection screen.: 1000
      Classification
           'x' - Professional User Transaction
       GUI capability
          'x' - SAP GUI for HTML
          'x' - SAP GUI for Java
           'x' - SAP GUI for Windows
    7. Save and activate the objects that you have created.
    Header Data
    Release Status: Released for Customer
    Released on: 16.11.2005  15:44:32
    Master Language: German
    Priority: Correction with high priority
    Category: Advance development
    Primary Component: SD-BIL-RR Revenue Recognition
    regards,
    Srinivas Muthyala

  • Discoverer and Standby Database Summary Tables

    Are there any known problems with Discoverer attempting to write to read-only Standby database summary tables? Has anyone been successful running Discoverer against a Standby database?
    Regards,
    Chad

    I have not used synonyms in our system, but they can be accessed by creating custom folders in admin. In general, Custom folders are created to build complex query using advanced SQL which cannot be handled by discoverer end user editions. Custom folders can use tables, views, or synonyms.

  • Does bi support summary tables

    Does bi support summary tables like discoverer.

    Summary tables will be managed in the Logical Table Sources (LTS) for a given logical table, you set the level of aggregation in the content tab against the dimension hierarchy the data is aggregated to.
    The BI Server takes the # elements at each hierarchy level and the # rows in the phyiscal sources to navigate a user query to the most efficient aggregate source. When you go lower than the chosen aggregate table can provide, the BI server automatically routes your query to the next (best) suitable aggregate.

  • Maintaining distinct counts in summary tables - thoughts

    Hi,
    We have a 3bn row transaction fact table of sales by product_id and customer_id.
    We have some very large summaries on this. e.g product/multiple.
    Wish to add at the summary leveks a distinct count of customers whio have been supplied or returned at these aggregate levels.
    At moment,code merges into summary tables latest batch of data on daily basis. Fine for sums, but when updating the summary table only want to read the latest batch of data, rather than having to scan the entire lower level table to get the count(distinct)
    How can we efficiently increment the counts but ensuring only increemnt if a brand new customer being supplied.
    Mat. views impractical at this stage due to volume of data.
    Many Thanks

    Hello,
    So if you have a calculation(Webi) function(Excel) built into the two tables you are using from the data source you might try 'configuring' the data as 'Occurance' from the workspace you created or after the file in index if you're using excel.  If you are using a universe as a data source for the exploration view set you can attempt to drag the 'measure' needed (count) into the workspace option "measure" when creating the workspace.
    I do hope this helps

  • How to link a summary table

    Post Author: strife
    CA Forum: General
    I am using Crystal 10 and trying to develop a donor percent participation report, comparing donors to total number of class members (donors per class/good addresses per class) * 100.  The number of class members comes from a summary table of good address counts that remains static throughout the year.
    1)      I can create a view for the good address counts but Iu2019m unclear as to the way to link this view to the table of donors.  I canu2019t link ID to ID since itu2019s a summary and doesnu2019t have a row per ID (I need address counts for ALL IDs not just the ones who are donors). 
    2)      If I put the view in a subreport, I get only one result not a count for each group which is class year. 
    3)      If I put the subreport in the class year group to get a result returned for each class but the subreport creates unwanted blank rows in the export to Excel.
    I am looking at the last option but wonder if there is some other way that Iu2019m overlooking.  Any help is appreciated.

    Here is the video!  and it works for 2010.  It shows you how to put the pivot wizard that you need on the ribbon.
    https://www.youtube.com/watch?v=pUXJLzqlEPk
    Excel Pivot Tables: How to flatten a cross tab table
    Note:  the above instructions for 2007 and 2003 work as well BUT you must let go of the "alt" & "d" when you press "P"!

  • Reg: Fact table and Dimension table in Data Warehousing -

    Hi Experts,
    I'm not exactly getting the difference between the criteria which decide how to create a Fact table and Dimension table.
    This link http://stackoverflow.com/questions/9362854/database-fact-table-and-dimension-table states :
    Fact table contains data that can be aggregate.
    Measures are aggregated data expressions (e. Sum of costs, Count of calls, ...)
    Dimension contains data that is use to generate groups and filters.
    This's fine but how does one decide which columns to consider for Fact table and which columns for Dimension table?
    Any help is much appreciated.
    Pardon me if this's not the correct place for this question. My first question in the new forum.
    Thanks and Regards,
    Ranit Biswas

    ranitB wrote:
    But my main doubt was - what is the criteria to differentiate between columns for Fact tables and Dimension tables? How can one decide upon the design?
    Columns of a fact table will often be 'scalar' attributes of the 'fact' data item. A dimension table will often be 'compound' attributes of a 'fact'.
    Consider employee information. The EMPLOYEE table can be a fact table. It might have scalar attribute columns such as: DATE_HIRED, STATUS, EMPLOYEE_ID, and so on.
    Other related information that can't be specified as a single attribute value would often be stored in a 'dimension' table: ADDRESS, PHONE_NUMBER.
    Each address requires several columns to define it: ADDRESS1, ADDRESS2, CITY, STATE, ZIP, COUNTRY. And an employee might have several addresses: WORK_ADDRESS, HOME_ADDRESS. That address info would be stored in a 'dimension' table and only the primary key value of the address record would be stored in the EMPLOYEE 'fact' table.
    Same with PHONE_NUMBER. Several columns are required to define a phone number and each employee might have several of them. The dimension tables are used to help 'normalize' the data in the employee 'fact' table.
    And that EMPLOYEE table might also be a DIMENSION table for other FACT tables. A DEVELOPER table might have an EMPLOYEE_ID column with a value that points to a 'dimension' row in the EMPLOYEE dimension table.

  • How do I display an invalid zip code in a summary table

    On my airshow website we have a feedback form, one of the questions is the zipcode where the visitor came from. This works fine. The summary results tab includes a lookup for the zipcode where I show the city associated with the zipcode and then how many responses came from that zipcode. This can be seen here http://www.hollisterairshow.com/feedback-results.php?tab=7
    In testing, I found that an invalid zipcode is not displayed in the summary table, although it is counted in the total number of responses. I'd like to display the invalid zipcode and leave the City blank, or maybe put "Invalid zip code". The current code is displayed below, it's beyond my ability to figure out how I should change it to display invalid zipcodes and I'd really appreciate some direction on this.
    I know I could validate the zipcode on entry but it's quite possible the zipcode table I have is out of date and i can't find a free downloadable list, so I'm thinking anything invalid could cause me to update my table.which is fine.
    Thanks for any assistance.
    Tony
    <div class="TabbedPanelsContent">
    <?php
    // Make a MySQL Connection
    $query = "SELECT feedback.zip, COUNT(feedback.zip), zipcodes.citystate FROM feedback, zipcodes WHERE feedback.zip = zipcodes.zipcode GROUP BY feedback.zip";
    $result = mysql_query($query) or die(mysql_error());
    // Print out result
    while($row = mysql_fetch_array($result))
    echo $row['zip']. " ". $row['COUNT(feedback.zip)']. " ". $row['citystate'];
    echo "<br />";
    ?>
    </div>

    Use an outer join on the two tables so that results are returned for all feedback rows, instead of just matching rows. The column zipcodes.citystate will be NULL. In your recordset output, you can test for null in the column and populate it with "Invalid Zipcode" if you want.
    You'll need to move the join to the FROM clause as I believe that MySQL does not support outer joins in the WHERE clause like most other DBMS's.

  • Report Summary table

    Hi
    I am tasked with producing an automated version of a manual summary table that is built in Excel.
    The data is derived from a single reporting table.
    My problem is going about how to design such a table.  Please see the image attached to get an idea of what i'm after.
    It's like I'm after a double grouping of data - one for the rows and one for the columns, but I don't know how to implement one.
    Should I just insert a row for each summation into the table that first begins with the row title?  eg
    VALUES ROWTITLE, SummedInfo2012, SummedInfo2013 etc....
    Or is there another way about this?
    Thanks.

    Well, keep guessing
    select type, value
    from (select
            sum(cast(fault as int)) as
    fault ,
            sum(cast(nonfault as int)) as
    nonfault ,
            sum(cast(dispute as int)) as
    dispute 
          from t1) as agg
      unpivot(value for type in([fault ], [nonfault ],
    [dispute ])) as u;
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Group by and internal table

    Hi everyone,
    Please help me. Is it possible to select data from database table into an internal table with group by?
    For example:
    select carrid connid SUM(seatsocc)
    from sflight
    into(internal-table-carrid, internal-table-connid, sum)
    group by carrid connid
    where fldate between ***
    endselect
    thank you in advance!
    Linda

    yes,
    select carrid connid SUM( seatsocc )      
    from sflight                              
    into (sflight-carrid, sflight-connid, sflight-seatsocc)
    where fldate = sy-datum group by carrid connid
    endselect.     
    The problems with yours were:
    . no space after SUM(
    . group by in wrong spot (before where)
    Here's the into table version:
    data ts type table of sflight with header line.
    select carrid connid SUM( seatsocc ) as seatsocc
    from sflight                               
    into corresponding fields of table ts      
    where fldate = sy-datum group by carrid connid
    This is not the most efficient way though. It is probably better to select into a table and sort and aggregate into another table in abap.

  • Query Question: Sum of master and monthly table data

    Hi All,
    I have two tables that store financial data about programs. The PROGRAM table has the following columns (for purposes of this discussion):
    ID, INITIAL_BUDGET, COST_CENTER
    The PROGRAM_MONTHLY table has the following (abbreviated list of) columns:
    ID, PROGRAM_ID (FK to PROGRAM.ID), CURRENT_FORECAST, RECORD_DATE
    Every month, a copy of the program_monthly records for last month is made to new records in the PROGRAM_MONTHLY table and we use RECORD_DATE for our filters and comparisons. This way we have historical data, plus current month data that can be updated by our financial systems and program managers.
    I am using Application Express and would like to create a dashboard chart that shows the summary of the INITIAL_BUDGET and the CURRENT_FORECAST for a selected month. Obviously, the INITAL_BUDGET doesn't change, but the CURRENT_FORECAST (and similar columns such as the amount committed to purchase orders, which were omitted to simplify the discussion) change monthly.
    My goal is to create a chart that can display the initial budget, current forecast, amount committed on purchase orders, etc. for all cost centers, or just one at a time as the user requires, that is filtered by the month of the PROJECT_MONTHLY record. If I can come up with the statement for a view or query, then I can manage the rest.
    The required syntax for the chart is "SELECT link, label, value FROM...", where "link" can be NULL, since is it an optional link to another URL. The "label" and "value" portion are the important parts.
    For example, I have another chart that shows the project status (which is a Varchar 2 constrained to values such as, Active, On-Hold, Completed, etc.) with the status as the label and the count of the rows as the value. It starts:
    select null link, pjm.PROJECT_STATUS label, COUNT(pjm.ID) value FROM ... However, I have been unable to come up with a query that generates the desired results for these PROGRAM and PROGRAM_MONTHLY tables. I have played with various types of joins and sub-queries, but my SQL just isn't up to the challenge yet. I realize that I might have to re-work the table structure to accomodate this requirement.
    I would greatly appreciate any guidance in approaching this problem.
    Many thanks for your time and help,
    Petie

    Certainly, Warren, thanks so much for your willingness to look at my problem.
    To keep things simple, I will put the fundamentals of the tables with sample data. Please let me know if you would like more and I would be happy to provide it.
    Table: PROGRAM
    ID   PROGRAM_NUMBER   INITIAL_BUDGET   COST_CENTER
    1   10001            100000           500-001
    2   10002            125000           500-001
    3   10003            150000           500-002
    4   10004            175000           500-002
    5   10005             10000           500-003
    6   10006            200000           500-004Table: PROGRAM_MONTHLY
    ID   PROGRAM_ID   CURRENT_FORECAST  RECORD_DATE
    1    1            95000            02-FEB-06
    2    2           125000            02-FEB-06
    3    3           145000            02-FEB-06
    4    4           180000            02-FEB-06
    5    5             9000            02-FEB-06
    6    6           225000            02-FEB-06
    7    1            97500            02-MAR-06
    8    2           120000            02-MAR-06
    9    3           145000            02-MAR-06
    10    4           185000            02-MAR-06
    11    5            10000            02-MAR-06
    12    6           215000            02-MAR-06
    Report Example 1
    When a user would like to see the current summary data for all cost centers, they would see a chart with the following data:
    INIT_BUDGET  CURRENT_FORECAST
    760000       772500
    Report Example 2
    When a user would like to see the summary data for all cost centers for last month, they would see a chart with the following data:
    INIT_BUDGET  CURRENT_FORECAST
    760000       779000
    Report Example 3
    When a user would like to see the current summary data for cost center 500-001, they would see a chart with this following data:
    INIT_BUDGET  CURRENT_FORECAST
    225000       220000I hope this better illustrates the solution I seek.
    Thank you again for your time and assistance
    Petie

  • Summary Tables for Asset Master?

    I need to create an asset/insurance data report, using SAP Query, which shows the asset master record balances only (acquisition and posted depre'n) as at report selection date. 
    Are there any summary tables for fixed assets that are equivalent to GLT0, KNC1 and LFC1 for GL, Customer and Vendor? 
    Thanks in advance for any assistance.
    Best regards,

    I am not sure about ANEP or know how to use it.  It only has data records for the fiscal year when there is posting to acquisition values field u201CAmount postedu201D for the asset. No data records for other years with posted depreciation.

  • Sql with groups, aggregates and fields of that aggregates

    lets say I have a table Students and want to group the students by major, and then for each group display the maximum age, and them for that maximum age display the name of that student
    I know how to do the grouping and max aggregate, I know how to do the max aggregate and the name of the max aggregate, but I'm having trouble doing all 3 together. Any help would be appreciated. Thanks.

    ok, well I was using an hypotethical example. What I'm really dealing with are many fields with from many tables and 2 groups with 2 nested aggregates. The original query from Crystal Reports doesnt use aggregates, its all done within report. I'm converting it to SSRS which doesnt support nested aggregates so I'm trying to do one of the aggregates in the query and then the other aggregate within the report.
    table students:
    name
    age
    major
    so the original query would look like:
    select name, age, major
    from student
    I'm trying to do something like:
    select max(age), name from max(age), major
    from student
    group by major
    Edited by: nwill on Feb 19, 2009 3:22 PM

  • Summary Tables

    Hello
    We are using Oracle 10g rel2 and have a table called transactions. There are millions of rows in this table and we would like to build a summary table that will sum the PNL by day. At some point we will purge data which is older than 60 days but need to be the summary totals by day. What is the best way to accomplish this. Materized views rely on the master table and that table will have data purged out of it, so I do not think it will work.
    Transaction table has column transaction_date , cost,sale
    We want a summary table of TRANSACTION_DATE,SUM(SALE - COST) AS PNL
    GROUP BY TRUNC(TRANSACTION_DATE)

    Danny G wrote:
    Hello
    We are using Oracle 10g rel2 and have a table called transactions. There are millions of rows in this table and we would like to build a summary table that will sum the PNL by day. At some point we will purge data which is older than 60 days but need to be the summary totals by day. What is the best way to accomplish this. Materized views rely on the master table and that table will have data purged out of it, so I do not think it will work.Not a problem with materialized views.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/refresh.htm#sthref888
    You do need to be strict about here about process control though:
    * suspend modifications to transaction table.
    * refresh the MV.
    * purge the old transaction data.
    * CONSIDER FRESH on the MV.
    * restart modifications to transaction table.

  • Linkig FI-SL Summary Table in Transaction FSI1

    Hi,
      I'm trying to create Balance Sheet Report on FI-SL. I do not see any option on how to link summary table to the report. We are in ECC 6.0. Any help is appreciated.
    Thanks,
    Trinadha

    Hello Trinadha,
    The linkage will be created / established when you create your library, sets and variables as well as when you specify  the FI-SL ledger in the columns of the report.
    For instance when you create a library, you need to enter the FI-SL summary table.  The linkage is then established when you enter the report and the report group in the said library.
    Refer back for any other clarifications.
    Elias

Maybe you are looking for

  • Problem with Serial Number from MSi ATi HD4870 :/

    Hi all, I have problem with my HD4870. I lost the serial number (the small paper on back of card) from card. Have I any chance to get it back? I can take a photo and post it here some S/N and P/N from card, if it helpfull... I lose my warranty, if I

  • Adobe Acrobat XI Standard

    Beställningsno AD005456899SE I try  to install  again, I cant chose XI in little windows, and I cant input the serial no. /HAS

  • Count function or similar in Numbers?

    is there any way of counting text entries in a col eg 'cash' to provide a number in the 'sum' cell telling me how may times 'cash' appears in the col above````````/

  • I am not able to log in

    Hi! I´m trying to log in, but it is not working. I have tried everything... It works here, at skype.com, to log in, but when I get back to the software, it´s just telling me that either the password or the username are wrong. And iÍ know it´s not, be

  • Need a logic for creating SQL query

    Hi Experts, Could you please help me to get the follwing desired output . thanks Actual Data: ABC01-02 XYZ02-03 PQR78-79 LMN1-5 Expected/Desired Output: ABC01 ABC02 XYZ02 XYZ03 PQR78 PQR79 LMN1 LMN5 Please let me know if you need any further informat