SubSonic has a "presence", but you are not explicitly specifying it.
It is determined if you select Aggregate and add an aggregate to the Where clause.
For example (paraphrased from SubSonic AggregateTests.cs)
SubSonic.SqlQuery q = new
Select(Aggregate.GroupBy("ProductID"), Aggregate.Avg("UnitPrice"))
.From("Order Details")
.Where(Aggregate.Avg("UnitPrice"))
.IsGreaterThan(50);
In the above SubSonic query, an SQL statement will be created with "HAVING AVG (UnitPrice)> 50"
source
share