Professional Documents
Culture Documents
Seq Query Cheat Sheet
Seq Query Cheat Sheet
count() – number of events or non-null values limit – retrieve only the first n rows of a result
Grammar
select count(*), count(SessionId) select *
from stream
select [<expr> [as <label>],] where Environment = 'Production'
[from stream distinct() – unique values of an expression
limit 100
[where <expr>]
select distinct(StatusCode),
[group by [time(<duration>)|<expr>,]]
count(distinct(RequestPath))
[having <expr>]
[order by [time|<label>] [asc|desc]]
[limit <number>] first(), last() – first or last non-null value
[for refresh]] select first(Elapsed), last(Elapsed)