select Before050101=(select sum(price) from tb where date>'2005-01-01'),
       After050101 =(select sum(price) from tb where date<'2005-01-01')