Имеется вот такой запрос:
SELECT (SELECT SUM(length) FROM schedule_patients WHERE time LIKE '2013-11-16%') / SUM(TIMESTAMPDIFF(MINUTE,start,end)) FROM schedule_personnel WHERE start LIKE '2013-11-16%';
Имеется вот такой запрос:
SELECT (SELECT SUM(length) FROM schedule_patients WHERE time LIKE '2013-11-16%') / SUM(TIMESTAMPDIFF(MINUTE,start,end)) FROM schedule_personnel WHERE start LIKE '2013-11-16%';