Hi Guys hope you can help
I have a database with two fields a date field and an amount field:
date amount
2007-09-27 , 20
2007-10-12 , 22
2007-10-24 , 23
2008-01-15 , 24
Code below, this doesn't work so how would it to work?
"SELECT * FROM payment WHERE substring(date,5,2) LIKE '10'";
I would then want to get the total for that month, which would be 45, which I would use sum(amount) as totalamount.
Hope you can help!