update mat view
This commit is contained in:
parent
d62217cf39
commit
2e031cecde
@ -40,7 +40,7 @@ SELECT
|
||||
FROM (SELECT
|
||||
event_time, ctxsession, ctxquizid, ctxquestionid, ctxidint, message, keyos,
|
||||
ctxuserip, ctxuserport, keydomain, keypath, ctxquiz, ctxreferrer,
|
||||
row_number() OVER (PARTITION BY ctxsession ORDER BY create_time DESC) as row_num
|
||||
row_number() OVER (PARTITION BY ctxsession ORDER BY event_time DESC) as row_num
|
||||
FROM statistics
|
||||
WHERE message IN ('InfoQuizOpen', 'InfoAnswer', 'InfoResult') AND event_level = 'info') AS sorted
|
||||
WHERE row_num = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user