while you weren't looking, Caleb Simonyi-Gindele <[EMAIL PROTECTED]> wrote:
> How do I get it to produce a row even when dat_staff_code is null? try something like SELECT coalesce(dat_staff_code, 0)...GROUP BY dat_staff_code That will substitute a zero for any NULL value in that column, which GROUP BY should then pick up. /rls -- :wq ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org