Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
πŸ› fix the false sort
Browse files Browse the repository at this point in the history
  • Loading branch information
frenicohansen committed Feb 13, 2024
1 parent 2382211 commit 9a0440f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/db/migrations/20240209170739_db_views/migration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ WITH outflows AS (
SELECT
"monthlyBudgetPerCategoryId",
activity,
SUM(assigned - activity) OVER (PARTITION BY "budgetCategoryId" ORDER BY "month", "year" ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) as available
SUM(assigned - activity) OVER (PARTITION BY "budgetCategoryId" ORDER BY "year", "month" ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) as available
FROM outflows;


Expand Down

0 comments on commit 9a0440f

Please sign in to comment.