Awesome! Thank you very much Claudio! :)
On Thu, Nov 21, 2013 at 10:40 AM, Claudio Nanni wrote:
> Hi Jopoy,
>
> Try this:
>
> "SELECT username,sum(acctoutputoctets) AS total_usage FROM radacct WHERE
> EXTRACT(YEAR_MONTH FROM acctstarttime) >= EXTRACT(YEAR_MONTH FROM
> CURRENT_DATE)and EXTRACT(Y
Hi Jopoy,
Try this:
"SELECT username,sum(acctoutputoctets) AS total_usage FROM radacct WHERE
EXTRACT(YEAR_MONTH FROM acctstarttime) >= EXTRACT(YEAR_MONTH FROM
CURRENT_DATE)and EXTRACT(YEAR_MONTH FROM acctstarttime) <
EXTRACT(YEAR_MONTH FROM CURRENT_DATE + INTERVAL 1 MONTH) GROUP BY username
HAVIN
Hi! I'm not sure how to phrase this question... anyway, here it is:
I'm trying to show users in DB radius who have exceeded 322100 bytes
(3GB) within the current month. As of writing I can only display total
usage by user with this:
"SELECT username,sum(acctoutputoctets) AS total_usage FROM r