create table 欠费表 (年,月,欠费用户编号,费用,其他)insert 欠费表 (年,月,欠费用户编号,费用,其他) select year(getdate()),month(getdate()),欠费用户编号,应收-已付,其他 from 你的表 where datediff(mm,时间,getdate())=0

解决方案 »

  1.   

    1:费用项目表(费用项目ID,费用项目说明,其他)
    2:应缴费表(年,月,用户编号,费用项目ID,其他)
    3:已缴费表(日期,用户编号,费用项目ID,金额)    -- 用户可能一个月分多次缴费由应缴费表和已缴费表即可得出欠费表
      

  2.   

    create table 欠费表 (年,月,欠费用户编号,费用,其他)insert 欠费表 (年,月,欠费用户编号,费用,其他) select year(getdate()),month(getdate()),欠费用户编号,应收-已付,其他 from 你的表 where datediff(mm,时间,getdate())=0支持楼主这个方案!!
    谁说建表难管理,我倒觉得方便,如怕速度问题,可用存储过程。