I\'d like to know if it\'s possible to use window queries based on time in Postgresql.
The original data is in the first three columns (date, salesman, amount):