From: Brad White <b55white@gmail.com>
To: David Goldsmith <d.l.goldsmith@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to write a crosstab which returns empty row results
Date: Sat, 24 Dec 2022 21:24:59 -0600
Message-ID: <b53b3b28-21c5-fd2b-bc9a-d4156c46ccb6@gmail.com> (raw)
In-Reply-To: <CAFtPsZqfiRvRp1EngwEfyNMu=nW11C0i7WvtYtBpO0gjjwLPwQ@mail.gmail.com>
References: <CAFtPsZqfiRvRp1EngwEfyNMu=nW11C0i7WvtYtBpO0gjjwLPwQ@mail.gmail.com>
On 12/24/2022 9:03 PM, David Goldsmith wrote:
> How do I force "empty rows" to be included in my query output? (I've
> tried LEFT JOINing to the row header results, and using CASE
> statements; but due to my unfamiliarity w/ using crosstab, I'm not
> sure if I've used those correctly in the current context;
>
Can you give us a head start by showing the query you have now that is
not working.
Extra points if you give simple create/populate statements that
demonstrate the problem.
Hope that helps,
Brad.
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: b55white@gmail.com, d.l.goldsmith@gmail.com
Subject: Re: How to write a crosstab which returns empty row results
In-Reply-To: <b53b3b28-21c5-fd2b-bc9a-d4156c46ccb6@gmail.com>
References: <CAFtPsZqfiRvRp1EngwEfyNMu=nW11C0i7WvtYtBpO0gjjwLPwQ@mail.gmail.com> <b53b3b28-21c5-fd2b-bc9a-d4156c46ccb6@gmail.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