isnull(當bill month = 1 then bill money end,0)month 1,
isnull(當BILLMONTH=2,則BILLMONEY end,0)month 2,
isnull(當BILLMONTH=3,則BILLMONEY end,0)month 3,
isnull(當BILLMONTH=4,則BILLMONEY end,0)month 4,
isnull(如果BILLMONTH=5,則BILLMONEY end,0) 'Month5 ',
isnull(當BILLMONTH=6,則BILLMONEY end,0)month 6,
isnull(當BILLMONTH=7時,則BILLMONEY end,0) 'Month7 ',
isnull(如果BILLMONTH=8,則BILLMONEY end,0) 'Month8 ',
isnull(如果BILLMONTH=9,則BILLMONEY end,0) 'Month9 ',
isnull(如果BILLMONTH=10,則BILLMONEY end,0) 'Month10 ',
is null(bill month = 11 then bill money end,0)month 11 ',
isnull(如果BILLMONTH=12,則BILLMONEY end,0) 'Month12 '
From賬表,其中賬單年=年(getdate())//本年!