没有数据环境的每周报告vb 6.0

时间:2010-12-24 11:36:18

标签: vb6

亲爱的朋友们: 我使用SQL Server 2005和VB 6.0开发了一个数据库。现在我想设计一个没有数据环境的报告。我在表中有以下字段: 表名:BusinessBySales 文件:SalesID,BusinessDate,BusinessType,BusinessAmt

我的BusinessType记录如:FDR,CD,SB,Auto Loan,Home Loan

 - SalesID BusinessDate BusinessType  BusinessAmt
 - 1 01/01/2010 SB 1200000
 - 2 02/01/2010 SB 2000000
 - 3 02/01/2010 CD 3000000
 - 4 04/01/2010 Car Loan 1400000
 - 5 08/01/2010 Home Loan 7500000
 - 6 12/01/2010 FDR 3000000

---

根据以上记录,我想设计一个特定月份的报告,如下所示

Week BusinessType NoOfBus Amount
1st SB 2 3200000
CD 1 3000000
Car Loan 1 1400000
2nd Home Loan 1 7500000
FDR 2 4000000
like 3rd and 4th week also

请建议我做那份报告

由于

0 个答案:

没有答案