Re: Problemas con un Query

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: Figo's <figo_sistemas(at)yahoo(dot)es>
Cc: pgsql <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Problemas con un Query
Date: 2006-01-23 17:59:51
Message-ID: c2d9e70e0601230959m46e8665dta141363bafbdd988@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 1/23/06, Figo's <figo_sistemas(at)yahoo(dot)es> wrote:
> El select q uso es:
>
> select extract(month from ob_fecha), count(*)
> from t_ob_log
> where ob_telefono like '58412%'
> group by 1, ob_fecha
> order by ob_fecha
>
>

y que sacas ordenando por fecha? ordenalo por mes:

select extract(month from ob_fecha), count(*)
from t_ob_log
where ob_telefono like '58412%'
group by 1
order by 1

--
Atentamente,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jaime Casanova 2006-01-23 18:07:18 Re: ERROR EN CONEXION A BD!!!!!!!!!!!!!!!!!!!!!!!!!!
Previous Message Figo's 2006-01-23 17:38:01 Re: Problemas con un Query