79607833

Date: 2025-05-06 01:25:35
Score: 0.5
Natty:
Report link

This is an easier way using a subquery for the line totals

with cte as (select m1.id, m1.verbosity, 
  (select sum(m2.verbosity) from messages m2 where m2.id <= m1.id) as total
from messages m1)
select id, verbosity from cte where total < 70
order by id
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Polymath