• This should work for you....

    select Customer, status, sum(datediff(dd, createddate, lastupdatedate))

    from #TempTable

    group by Customer, status

    order by customer