pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Anthony Apollis <anthony.apollis@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Check Code Correction Current Period Prior Period Movement
Date: Thu, 23 Nov 2023 08:13:43 -0800
Message-ID: <6bee67fa-7742-4683-b20e-ad301f8ac14a@aklaver.com> (raw)
In-Reply-To: <CAJyMCYLMaQHErd5i4_WRTcsBXYPLzQggz9qCueQs17d7arau7A@mail.gmail.com>
References: <CAJyMCYLMaQHErd5i4_WRTcsBXYPLzQggz9qCueQs17d7arau7A@mail.gmail.com>

On 11/23/23 06:02, Anthony Apollis wrote:
> Please assist me?
> I am trying to calculate
>   Current Period 	 Prior Period 	 Movement
> 
> from my data, the date columns are:
> image.png
> 
> Please check my code for any errors, code runs, i just want to make sure 
> it does what it's supposed to do.

Since you have not specified '...what it's supposed to do' is there is 
really not much that can be said. Your best bet is to create some sample 
input data and expected output and then create a test that verifies that 
the input passes through the view statements and ends up as the expected 
output.

-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (2+ messages)

Message-ID: <6bee67fa-7742-4683-b20e-ad301f8ac14a@aklaver.com>
Permalink:  ../6bee67fa-7742-4683-b20e-ad301f8ac14a@aklaver.com/
Also on:    postgresql.org/message-id/6bee67fa-7742-4683-b20e-ad301f8ac14a@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, anthony.apollis@gmail.com
  Subject: Re: Check Code Correction Current Period Prior Period Movement
  In-Reply-To: <6bee67fa-7742-4683-b20e-ad301f8ac14a@aklaver.com>
  References: <CAJyMCYLMaQHErd5i4_WRTcsBXYPLzQggz9qCueQs17d7arau7A@mail.gmail.com> <6bee67fa-7742-4683-b20e-ad301f8ac14a@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox