11 May 2026 02:22 AM
SELECT
usersession.startTime,
userevent.startTime ,
usersession.userSessionId,
usersession.stringProperties.user_loginid,
(userevent.startTime - usersession.startTime )/60000 AS error_occurrence
FROM userevent
WHERE page = '/error_page'
AND error_occurrence > 5The above query would not work; it shows error 'Unknown field: error_occurrence'. Is there any other option to achieve this?
11 May 2026 09:30 AM
Hi,
Unfortunately, you can't use Alias in Where clause, you can use only fields.
11 May 2026 12:26 PM
Thanks Khejazi, for your reply.
`AND (userevent.startTime - usersession.startTime )/60000 > 5`
Even with the fields arithmetic is not allowed. Is there any workaround for this?
Featured Posts