• subscribe
February 19, 2003 12:00 AM

March 2003 MDX Puzzle

SQL Server Pro
InstantDoc ID #37804

In any type of analysis, it's important to separate the relevant data from the irrelevant. Many approaches to this type of filtering are available, but a common approach is to find the top n items or the bottom n items based on some criteria. In a cube such as FoodMart Sales, filtering products isn't always as simple as finding the top n products across the whole product dimension.

For this puzzle, use the FoodMart 2000 Sales cube and write an MDX query that finds the top five product names in each product department. Use Store Sales to rank the products, and include the product department dimension member before each group of product names. The products should be on the rows, and the quarters of 1997 should be on the columns. All values displayed should be Store Sales.



ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here
  • SP1?
    I know there is a SP1 for SQL 2008 R2 available....and there is a "feature pack" as well... ...
  • SQL database mirroring
    I have SQL Server 2008 R2 Enterprise 64bit on Windows 2008 R2 Enterprise 64bit.  Each SQL Server has...
  • Dell Compellent Disk Drive
    Does anybody has experience with Dell Compellent Disk Drive? Basically, this system manages all disk...
  • Sql server performance tuning
    I need to find a tool that help me to optimize sql server,queries,improve the performance and solve ...