I am working on a system for a broadcaster, this keeps track of the audio files played on the day, as well as the duration of each audio file. I save this information in a table that has the following structure:
** The description field contains the name of the audio file reproduced, this data can be repeated because during the day a certain song or audio can be repeated several times.
Now I need to group by Description, get the number of times an audio was played, as well as the total minutes or seconds that were played either in a whole value or in the same Time data type. The query that I have armed so far goes like this
SELECT
OpeRadioReporte.Descripcion,
Count(*) as TotalReproducciones,
SUM(OpeRadioReporte.Duracion) -- ESTO ME GENERA ERROR PUES NO ME SUMA EL CAMPO TIME.
FROM
OpeRadioReporte
WHERE
MONTH(OpeRadioReporte.Fecha) = 9
AND
YEAR(OpeRadioReporte.Fecha) = 2018
GROUP BY
OpeRadioReporte.Descripcion
Where when trying to add the Time Type field, I get an error.