Query how-to - Mailing list pgsql-sql

From Montaseri
Subject Query how-to
Date
Msg-id 8078a1730810021349y64187bem8152880a3b90184b@mail.gmail.com
Whole thread Raw
Responses Re: Query how-to
Re: Query how-to
List pgsql-sql
<div dir="ltr">Hi,<br /><br />I was wondering if you can help me with the following query.<br /><br />Given table T1
andcolumns id, start_date, stop_date and status, propose a query that reports count of items opened and closed . status
isan enum including NEW, xxx, xxxx, CLOSED. The first status of an item is NEW (could be used in place of
start_date)<br/> For example<br /><br />Date                     Opened        Closed<br
/>=============================<br/>yyyy-mm-dd       25                   6<br />yyyy-mm-dd      
0                     16<br />yyyy-mm-dd       12                    0<br /> etc <br />etc<br /><br />Thanks<br
/>Medi<br/></div> 

pgsql-sql by date:

Previous
From: "Tony Wasson"
Date:
Subject: Re: Can COPY update or skip existing records?
Next
From: "Richard Broersma"
Date:
Subject: Re: Query how-to