On the table below how would I write a select clause for the SUM of prices for a particular year, say 2013? something like SUM(price WHEN year = 2012). And how would I refer to that result in PHP mysql_fetch_array().
+++++++++++++++++++++++++++++
Price | Date | Month | Year |
+++++++++++++++++++++++++++++
9.00 |343345| 2 | 2013 |
3.00 |343445| 2 | 2013 |
4.00 |343245| 1 | 2013 |
1.00 |342245| 1 | 2013 |
5.00 |333355| 12 | 2012 |