Skip site navigation (1) Skip section navigation (2)

help on select

From: Saulo Venâncio <saulo(dot)venancio(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: help on select
Date: 2011-04-20 20:10:32
Message-ID: BANLkTinpuRYSkCkU7ovGojjAhbgXcLAP=g@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-sql
Hi guys,
I need your help.
I have a table called medidas, in this table i have some ocurrences that has
id_medida(primary key) id_ponto (sec_key) and also datetime field as
timestamp.
i would like to know from a set of idpontos, e.g. 10,11,23,24.... how can i
get the most recent date that is common to all??
for example, if idponto das date 2011-02-03 but none of others have this
date in the db i dont want this. i want one common for all..
thanks.

*-----------------------
**Saulo B. M. Venâncio*

Control and Automation Eng. Student
*Associate in Business Management*

T +55 4884121486
*E saulo(dot)venancio(at)gmail(dot)com
*

Responses

pgsql-sql by date

Next:From: CharlieDate: 2011-04-21 08:03:27
Subject: Re: help on select
Previous:From: Oliveiros d'Azevedo CristinaDate: 2011-04-20 16:12:05
Subject: Re: How to realize ROW_NUMBER() in 8.3?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group