Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-2443

Support Language feature for "With Rollup"

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 8.5
    • None
    • Query Engine
    • Documentation (Ref Guide, User Guide, etc.), Release Notes
    • High

    Description

      It would be useful to provide the clause 'WITH ROLLUP' in Teiid for analytical type queries. Example:

      Group                Name                 SalesYTD
      North America        Northwest            123237.00
      North America        Northwest             37534.00
      North America        Northwest             48003.00
      North America        Southwest            164232.00
      North America        Southeast             39667.00
      North America        Southeast            105810.00
      Europe               France                74569.00
      Europe               Germany               59456.00
      Pacific              Australia             93403.00
      Europe               United Kingdom        78327.00
      

      With query like

      SELECT      [Group], [Name], SUM([SalesYTD]) AS 'Total Sales'
      FROM        Table
      GROUP BY    [Group], [Name] WITH ROLLUP 
      

      will produce

      Group                Name                 Total Sales
      Europe               France                74569.00
      Europe               Germany               59456.00
      Europe               United Kingdom        78327.00
      Europe               NULL                 212352.00
      North America        Northwest            208774.00
      North America        Southeast            145477.00
      North America        Southwest            164232.00
      North America        NULL                 518483.00
      Pacific              Australia             93403.00
      Pacific              NULL                  93403.00
      NULL                 NULL                 824238.00
      

      4 rows have been added, 3 for sub total of each [Group], and 1 row for grand total.

      Teiid needa to build it's analytical function library to be useful in reporting situations.

      Attachments

        Activity

          People

            rhn-engineering-shawkins Steven Hawkins
            rhn-engineering-rareddy Ramesh Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: