sqlite query to find sum of a year by the given dates
问题 I have written a query : SELECT YEAR(Date),SUM(replace(price, ',', '')) FROM example GROUP BY year(date); .I am trying to get sum of all price for that year but I am getting an error - no such function : year. Please guide me .I am a noob in db.Thanks again. 12/10/11 377,245.67 12/19/11 5,104,245.00 12/28/11 23,332.98 12/24/10 126,875.21 12/24/10 5,112,225.14 12/23/10 4,552.54 11/24/10 402.82 10/15/09 132,875.32 9/19/09 126,334,123.32 9/23/09 345,887.21 9/29/09 16,520.11 9/28/09 388,902.02 11