|
mitasid
Yak Posting Veteran
51 Posts |
Posted - 2006-06-09 : 00:20:09
|
| well the reason y i posted this in new thread was because tkizer did not reply to my last post...and i needed a solution..so i thought i ll put it again..well these are the insert into statements for my table.. CREATE TABLE Table1 (Funder char, FMIS Code int, Service ID int, Client NHI int, year date,Nov int,Dec int)INSERT INTO Table1 VALUES('cant',12,333,1212,2000,12,33)INSERT INTO Table1 VALUES('cant',13,3343,1222,2000,112,233)INSERT INTO Table1 VALUES('cant',103,5343,22,2000,142,733)---------------------------------------------------------------CREATE TABLE Table2 (Funder char, FMIS Code int, Service ID int, Client NHI int, year date,Jan int,feb int...Dec int)INSERT INTO Table2 VALUES('NEL',112,33,172,2001,11,33,77,88,44,2,8,76,4,56)INSERT INTO Table2 VALUES('NEL',133,043,172,2001,132,233,8,9,00,55,34,87,9,1)INSERT INTO Table2 VALUES('NEL',138,943,6,2001,142,733,8,6,7,4,4,2,5,8)----------------------------------------------------------------------CREATE TABLE Table3 (Funder char, FMIS Code int, Service ID int, Client NHI int, year date,Jan int,feb int...Dec int)INSERT INTO Table3 VALUES('NEL',112,33,172,2003,11,33,77,88,44,2,8,76,4,56)INSERT INTO Table3 VALUES('NEL',133,043,172,2003,132,233,8,9,00,55,34,87,9,1)INSERT INTO Table3 VALUES('NEL',138,943,6,2003,142,733,8,6,7,4,4,2,5,8)here is the sample data for the report output..hope it makes it more clear now...table 1Companyname id year volume_for_jan vol_for_feb.....vol_decabc 1 2000 34 333 ......5552 2000 33 22 666table 2Companyname id year volume_for_jan vol_for_feb.....vol_decrrr 44 2001 55 66.............888 4 2001 22 354 54each table has almost 800000 rowsI need to generate a report out of these tables which should be as followsCompany name Id Year Vol_for_jan Vol_for_feb.........abc 1 2000 34 33 2 2000 33 22rrr 44 2001 66 21..................................................when i try to run the report in business intelligence ,it takes forever to run and doesnt even produce the report at the end... |
 |
|