我有一个数据表
model day number
GS 1 0
LX 1 0
ES 1 1
GS 2 0
LX 2 0
ES 2 0
GS 3 0
LX 3 1
ES 3 0
31 0
请帮我创建一个RTF模板来显示数据:
Model 1 2 3 4 5 6 7 31 total
GS 0 0 0 0 0 0 0 0 0
LX 0 0 1 0 0 0 0 0 1
ES 1 0 0 0 0 0 0 0 0
Total 1 0 0 0 0 0 0 0 1
答案 0 :(得分:0)
听起来你想要交叉标签数据。
“Oracle XML Publisher报表设计器指南”详细介绍了如何执行此操作:
<ROWSET>
<RESULTS>
<INDUSTRY>Motor Vehicle Dealers</INDUSTRY>
<YEAR>2005</YEAR>
<QUARTER>Q1</QUARTER>
<SALES>1000</SALES>
</RESULTS>
<RESULTS>
<INDUSTRY>Motor Vehicle Dealers</INDUSTRY>
<YEAR>2005</YEAR>
<QUARTER>Q2</QUARTER>
<SALES>2000</SALES>
</RESULTS>
<RESULTS>
<INDUSTRY>Motor Vehicle Dealers</INDUSTRY>
<YEAR>2004</YEAR>
<QUARTER>Q1</QUARTER>
<SALES>3000</SALES>
</RESULTS>
<RESULTS>
<INDUSTRY>Motor Vehicle Dealers</INDUSTRY>
<YEAR>2004</YEAR>
<QUARTER>Q2</QUARTER>
<SALES>3000</SALES>
</RESULTS>
<RESULTS>
<INDUSTRY>Motor Vehicle Dealers</INDUSTRY>
<YEAR>2003</YEAR>
...
</RRESULTS>
<RESULTS>
<INDUSTRY>Home Furnishings</INDUSTRY>
...
</RESULTS>
<RESULTS>
<INDUSTRY>Electronics</INDUSTRY>
...
</RESULTS>
<RESULTS>
<INDUSTRY>Food and Beverage</INDUSTRY>
...
</RESULTS>
</ROWSET>