微软SQL Server 2000 Reporting Services介绍(五)[2]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 ufo_csdn 的 blog

n       如何实现matrix

上图是reporting services中提供的一个例子,纵向为一个公司的产品类别和子类别,横向为年份和季度,这种显示模式在很多的报表中都可以套用,例如一般的集团公司会在纵向显示出所有分子公司和部门。下面从rdl文件的角度分析该例子是如何实现的,首先来看看其中的查询语句

    <query>

        <datasourcename>adventureworks</datasourcename>//指定数据源名称

        <commandtext>select     productcategory.name as prodcat, //产品类别productsubcategory.name as subcat, //产品子类别

datepart(yy, salesorderheader.orderdate) as orderyear, //年份

本文关键:Reporting Services,.NET Framework.,rdl文件,Matrix格式,Toggle功能
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top