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
tools/Language/SQL/SimpleSQL

View file

@ -331,13 +331,13 @@ target_string
> ,("sum(a order by a)"
> ,AggregateApp [Name "sum"] SQDefault [Iden [Name "a"]]
> [SortSpec (Iden [Name "a"]) DirDefault NullsOrderDefault])
> [SortSpec (Iden [Name "a"]) DirDefault NullsOrderDefault] Nothing)
> ,("sum(all a)"
> ,AggregateApp [Name "sum"] All [Iden [Name "a"]] [])
> ,AggregateApp [Name "sum"] All [Iden [Name "a"]] [] Nothing)
> ,("count(distinct a)"
> ,AggregateApp [Name "count"] Distinct [Iden [Name "a"]] [])
> ,AggregateApp [Name "count"] Distinct [Iden [Name "a"]] [] Nothing)
> ]
> windowFunctions :: TestItem