Re: Lowest 2 items per - Mailing list pgsql-sql

From Relyea, Mike
Subject Re: Lowest 2 items per
Date
Msg-id AF7D9319B29A0242A33C3BF843BD31330EFB8DA1@USA7061MS03.na.xerox.net
Whole thread Raw
In response to Re: Lowest 2 items per  ("Oliveiros d'Azevedo Cristina" <oliveiros.cristina@marktest.pt>)
List pgsql-sql
> -----Original Message-----
> From: Oliveiros d'Azevedo Cristina
[mailto:oliveiros.cristina@marktest.pt]
> Sent: Friday, June 01, 2012 12:28 PM
> To: Relyea, Mike
> Cc: pgsql-sql@postgresql.org
> Subject: Re: [SQL] Lowest 2 items per
>
> Yes, you are right, now, thinking about the way I built it, the query,
indeed,
> leaves out the corner case of models which have just one consumable.
>
> I didn't try ur version of the query.
> Does itork now with your improvements ?
> Or were they only gramatical ?
>
> Best,
> Oliver

I only made grammatical changes necessary for the query to function
(adding a missing FROM, fully qualifying "SELECT Make" as " SELECT
subquery2.Make", etc.)
I tried changing the join type to right and left but that did not have
the desired result.

Mike


pgsql-sql by date:

Previous
From: "Oliveiros d'Azevedo Cristina"
Date:
Subject: Re: Lowest 2 items per
Next
From: "Oliveiros d'Azevedo Cristina"
Date:
Subject: Re: Lowest 2 items per