Getting previous year values
this is a simple case of a conditional aggregate:

select product_name, 
       sum(case when year = 2014 then sales_dollars end) as previous_year_sales,
       sum(case when year = 2015 then sales_dollars end) as this_year_sales
from the_table
group by product_name;