I run a query in postgresql to obtain the category of paydays in t+1 (f.e.02-28-2015) of a set of clients on a cut-off date - previous month t (f.e.01-31-2015). The result i