Hi Angelo, it depends on the type of field,
date fields can be accessed directly, e.g. dbradius.radacct.AcctStartTime datetime fields need .date(): dbradius.radacct.AcctStartTime.date() Denes. On Jul 12, 1:58 pm, Angelo Compagnucci <angelo.compagnu...@gmail.com> wrote: > Ello everybody! > > I'm stuck whith a really simple thing, but the simpler are the worst! > > I wrote this query: > > rows = dbradius(dbradius.radacct.CalledStationId==hsname).select( > count, > dbradius.radacct.AcctStartTime.year(), > dbradius.radacct.AcctStartTime.month(), > dbradius.radacct.AcctStartTime.day(), > groupby=entry_date) > > Query works well, but I want a signle field for the date part, not the > three fields (year, month, day) I obtain. > > There is a simple way to accomplish this? > > Thank you!