Ecco la tua domanda:
SELECT STR_TO_DATE(CONCAT(DATE_FORMAT(`time`, '%H'), ':', (FLOOR(DATE_FORMAT(`time`, '%i') / 15) * 15), ':00'), '%H:%i:%s') `starttime`, AVG(`power`) `avgpower`
FROM `tablea`
GROUP BY `starttime`;
Non esitare a sostituire la tabella (tablea ) e colonne (time e power ) nomi in base al tuo schema.
Spero che questo aiuti.