S
shangxuan
Unregistered / Unconfirmed
GUEST, unregistred user!
表1
outFactoryBillNO dump_type group_concat(dump_NO)
20050001 S324 873,227,2150,1932,219,259,2133,761
20050002 S324 2806,1755,1947,940,1422,1169,1790,1823
20050001 S325 790,779,289,257
20050002 S325 646,1031,653,159
20050001 S326 559,1394,1736,1567,1415,1591,1434,1158
20050002 S326 1337,1548,1332,1800,1495,1345,622,1331
20050001 S327 937,204,259,932
20050002 S327 578,78,691,917
表2
outFactoryBillNO motivetype motiveNO workNO outFactoryDate
20050001 DF11 0001 0201-05-071 2005-09-27 11:57:15
20050002 DF11 0035 0201-05-070 2005-09-27 00:00:00
主报表字段为表2中outFactoryBillNO,motiveType,motiveno ,outfactoryDate.
从报表需列举出主报表中对应outFactoryBillNO的所有dump_type和group_concat(dump_NO)。
应该如何关联。
查询表2我用的SQL为‘SELECT * FROM 表2’,然后关联到DATASOUCE2。
表1的内容为语句'select outFactoryBillNO,dump_type,group_concat(dump_NO) from outfactorydumpinfo group by dump_type,outFactoryBillNO'查询所得。设置该查询的MASTDATASOUCE 为datasouce2,maseField 设置为outFactoryBillNO,然后将FASTREPORT的2个Frxdataset 分别关联到DATASOUCE2,及查询表1的SQL语句。报表最后的结果却没有关联起来,应该如何制作本报表。
非常感谢!
outFactoryBillNO dump_type group_concat(dump_NO)
20050001 S324 873,227,2150,1932,219,259,2133,761
20050002 S324 2806,1755,1947,940,1422,1169,1790,1823
20050001 S325 790,779,289,257
20050002 S325 646,1031,653,159
20050001 S326 559,1394,1736,1567,1415,1591,1434,1158
20050002 S326 1337,1548,1332,1800,1495,1345,622,1331
20050001 S327 937,204,259,932
20050002 S327 578,78,691,917
表2
outFactoryBillNO motivetype motiveNO workNO outFactoryDate
20050001 DF11 0001 0201-05-071 2005-09-27 11:57:15
20050002 DF11 0035 0201-05-070 2005-09-27 00:00:00
主报表字段为表2中outFactoryBillNO,motiveType,motiveno ,outfactoryDate.
从报表需列举出主报表中对应outFactoryBillNO的所有dump_type和group_concat(dump_NO)。
应该如何关联。
查询表2我用的SQL为‘SELECT * FROM 表2’,然后关联到DATASOUCE2。
表1的内容为语句'select outFactoryBillNO,dump_type,group_concat(dump_NO) from outfactorydumpinfo group by dump_type,outFactoryBillNO'查询所得。设置该查询的MASTDATASOUCE 为datasouce2,maseField 设置为outFactoryBillNO,然后将FASTREPORT的2个Frxdataset 分别关联到DATASOUCE2,及查询表1的SQL语句。报表最后的结果却没有关联起来,应该如何制作本报表。
非常感谢!