How to Calculate a Cumulative Percentage in SQL – Java, SQL and jOOQ.