Re: a row disapearing

From: Rafal Pietrak <rafal(at)zorro(dot)isa-geek(dot)com>
To: Nis Jorgensen <nis(at)superlativ(dot)dk>
Cc: pgsql-general(at)postgresql(dot)org, Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
Subject: Re: a row disapearing
Date: 2006-05-29 10:56:08
Message-ID: 1148900168.14902.45.camel@model.home.waw.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 2006-05-29 at 12:32 +0200, Nis Jorgensen wrote:
> Rafal Pietrak wrote:
> > But is there a way to achieve one row output with both the count() and
> > its selector, when the ocunt is ZERO?
> SELECT dummy.id, count(xxx.id) FROM (SELECT :id as id FROM dual) as
> dummy LEFT JOIN xxx using (id) GROUP BY id;
>
> You owe the Oracle a natural left join replacement.

Luckily I've already figured that out, after Richard hinted me on using
a JOIN.

Thenx!

--
-R

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message dananrg 2006-05-29 11:06:49 Re: Best open source tool for database design / ERDs?
Previous Message Nis Jorgensen 2006-05-29 10:32:30 Re: a row disapearing