Hi all, Actually I need to perform a query returning sums of data aggregated on a given period according to a given date interval(per day, week or month). In SQL it would be something like: SELECT count(*), DATE_FORMAT(, '%Y %m %d') toto FROM GROUP BY toto; I have 3 questions: * Is it possible to do so with HQL? And ... |
IList results = session.CreateCriteria(typeof(Cat)) .SetProjection(Projections.ProjectionList() .Add(Projections.RowCount(), "AverageRecordsPerDay") ... |