Am unable to use LAG function and Over clause in SWQL anyone help me
LAG and OVER are supported in Transact-SQL (see https://learn.microsoft.com/en-us/sql/t-sql/functions/lag-transact-sql?view=sql-server-ver16). SWQL is designed to mimic SQL, but it doesn't support all SQL operations. See https://github.com/solarwinds/OrionSDK/wiki/SWQL-Functions for the list of supported SWQL functions.