|
因为报表格式的原因,要求按表1的子段1分组,生成表2格式的查询,试过多种方法,都不如意,特请教
<TABLE cellSpacing=0 cellPadding=0 width=617 border=0 x:str>
<COLGROUP>
<COL style="WIDTH: 30pt; mso-width-source: userset; mso-width-alt: 1280" width=40>
<COL style="WIDTH: 41pt; mso-width-source: userset; mso-width-alt: 1728" width=54>
<COL style="WIDTH: 42pt; mso-width-source: userset; mso-width-alt: 1792" span=2 width=56>
<COL style="WIDTH: 54pt" width=72>
<COL style="WIDTH: 38pt; mso-width-source: userset; mso-width-alt: 1632" width=51>
<COL style="WIDTH: 54pt" span=4 width=72>
表1
表2
id
子段1
子段2
子段3
id
子段2-A
子段3-A
子段2-B
子段3-B
1
A
1
10
1
1
10
3
12
1
A
2
11
1
2
11
4
13
1
B
3
12
2
5
14
7
16
1
B
4
13
2
6
15
8
17
<TR height=21>
2
A
<TD class=xl |
|