Restar dos campos de tipo fecha de distintos registros

From: Alberto Cuevas <betocuevas(dot)net(at)gmail(dot)com>
To: "pgsql-es-ayuda(at)postgresql(dot)org" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Restar dos campos de tipo fecha de distintos registros
Date: 2016-04-18 16:36:18
Message-ID: CA+mENxqhBJ9AYRJuCkpjvrDQGhGM8OQMZnN3N2XgZkirrppeSg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Hola a todos necesito restar dos campos de tipo fecha de distintos
registros.

FechaFinal - FechaInicial

| Ord. | FechaInicial | FechaFinal |
| 2 | *26/02/2016* | 02/03/2016 |
| 1 | 18/02/2016 | *24/02/2016* |

*24/02/2016 - 26/02/2016* =

*2 dias*
Por favor si me pueden ayudar

*.*
Saludos

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Gilberto Castillo 2016-04-18 17:01:00 Re: [MASSMAIL] Restar dos campos de tipo fecha de distintos registros
Previous Message José de Paz 2016-04-17 13:47:37 RE: Insertar Foto en tabla y como visualizarla