Mondrian MDX簡介,mondrianmdx簡介

來源:互聯網
上載者:User

Mondrian MDX簡介,mondrianmdx簡介

 Mondrian MDX簡介

 

 

       MDX(Multidimensional Expression)是構建查詢OLAP資料庫的語言;就像SQL是構建操作關係型資料庫語言一樣。

      

       MDX是微軟首創,作為1997年制度OLE DB for OLAP (ODBO)的一部分;Mosha Pasumansky 是MDX語言設計者之一;MDX很快即被其他OLAP廠商作為OLAP查詢語言標準實現,也包括Mondrian。

 

       使用MDX可以查詢線上分析處理(OLAP)資料,計算處理資料,檢索中繼資料屬性等。

 

select {[Measures].[Unit Sales]} ON COLUMNS,  

{[Product].[All Products]} ON ROWS  

from [Sales]  

where [Time].[1997]  

 

查詢”Sales”立方體資料庫”Unit Sales”維度值,針對發生在1997年度的所有產品,我們可以通過Foodmart樣本資料測試。

 

Mondrian已經實現很多微軟的分析服務標準MDX運算式,可以獲得更多的內容在這裡。

 

輸入MDX查詢在JPivot JSP頁面有兩種方式:

·        輸入jp:mondrianQuery 標籤

·        在MDX 編輯器中輸入MDX語句

使用MDX 編輯器:

·        啟動 Mondrian OLAP服務

·        瀏覽樣本 JSP檔案, for example "JPivot pivottable"

·        在頁面上方工具列上點擊MDX 按鈕,即顯示MDX 編輯器

·        在這裡輸入前面樣本MDX查詢語句,點擊Apply按鈕

及顯示下面的結果表格內容:

 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.