Added DISTINCT flag to avg and sum

This commit is contained in:
rbock
2014-01-22 09:31:36 +01:00
parent 34f6c7a2eb
commit abce8592e6
3 changed files with 38 additions and 12 deletions
+2
View File
@@ -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;
}