2010/1/21 Santiago Zarate <[email protected]>:
>
> Quizas pueda realizarse tambien con las window functions pero...
> habria que echarle un ojo a ver...
>

de hecho si, si esta usando 8.4

>>
>> Select  fecha actividad, nomactividad from actividades where
>> id_tipo_actividad=4
>>

select row_number() over (), fecha actividad, nomactividad
  from actividades
where id_tipo_actividad=4

-- 
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157
--
TIP 1: para suscribirte y desuscribirte, visita 
http://archives.postgresql.org/pgsql-es-ayuda

Responder a