Create Implementing Balance Sheets in PostgreSQL.md#15
Create Implementing Balance Sheets in PostgreSQL.md#15dora-su wants to merge 3 commits intopavanagrawal123:masterfrom
Conversation
A gallery entry on making balance sheets using PostgreSQL.
|
This is pretty cool. Can you try implementing with the lag function, it'll make your code more concise! |
|
Hi! |
|
Sure I can help out. What exact commands were you using with the lag function? |
|
I will also go ahead and accept the GCI task, right after you fix the title. The current title in the markdown file does not follow the hugo syntax. You can look on the example to see the correct format. |
Title Updated.
|
Hi! I updated the title to match the table from the example. Let me know if it still needs fixing. Here is my original use of the lag function: UPDATE "BalanceSheet"
SET "Balance" = (SELECT LAG ("Balance", 1, 0.0) OVER (ORDER BY "Date" ASC)) + "Credit (+)" - "Debit (-)"; Thanks! |
A gallery entry on making balance sheets using PostgreSQL.