Thank you SO very much. Works EXACTLY like i wanted!!!
Next quick question, is how do i show stats for the last 7 days?
Would i keep everything the same and just add a between DATE_SUB INT 7 days and now?
add this to the where clause
AND stat_date BETWEEN ADD_DATE( CURRENT_DATE, -7) AND CURRENT_DATE
You could do " AND stat_date >= ADD_DATE( CURRENT_DATE, -7) " if you know that there will not be dates greater than the current date in the system