mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-04-28 15:09:26 -05:00
Added DISTINCT flag to avg and sum
This commit is contained in:
@@ -116,6 +116,8 @@ int main()
|
||||
|
||||
// distinct aggregate
|
||||
interpret(count(sqlpp::distinct, t.alpha % 7), printer).flush();
|
||||
interpret(avg(sqlpp::distinct, t.alpha - 7), printer).flush();
|
||||
interpret(sum(sqlpp::distinct, t.alpha + 7), printer).flush();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user