SELECT * FROM (select row_number() over (order by id) as rn,* from EventLog)x where rn between 1 and 5