1
Fork 0

add filter and within group aggregates

This commit is contained in:
Jake Wheat 2014-04-19 18:01:49 +03:00
parent 59826ecce2
commit 7057241974
5 changed files with 129 additions and 21 deletions
Language/SQL/SimpleSQL

View file

@ -78,6 +78,13 @@
> ,aggDistinct :: SetQuantifier -- ^ distinct
> ,aggArgs :: [ValueExpr]-- ^ args
> ,aggOrderBy :: [SortSpec] -- ^ order by
> ,aggFilter :: Maybe ValueExpr -- ^ filter
> }
> -- | aggregates with within group
> | AggregateAppGroup
> {aggName :: [Name] -- ^ aggregate function name
> ,aggArgs :: [ValueExpr] -- ^ args
> ,aggGroup :: [SortSpec] -- ^ within group
> }
> -- | window application, which adds over (partition by a order
> -- by b) to regular function application. Explicit frames are