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

Re:

From: Michael Fork <mfork(at)toledolink(dot)com>
To: Manish Vig <sk(at)pobox(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re:
Date: 2000-11-30 13:38:32
Message-ID: Pine.BSI.4.21.0011300833020.4204-100000@glass.toledolink.com (view raw or flat)
Thread:
Lists: pgsql-hackers
try this

SELECT age(max(h_date), now()) FROM table WHERE email='hawks(at)vsnl';

Michael Fork - CCNA - MCP - A+
Network Support - Toledo Internet Access - Toledo Ohio

On Thu, 30 Nov 2000, Manish Vig wrote:

> Dear Sir,
> thanks for the reply.
> I tried                     select now()
> but it gives   the following error
> syntax error near unexpected token `select.
> 
> To be specific about  my problem, I want to compare one max date with the
> current date in my Java servlet
> Since nested  queries are not possible, how do i acheive my goal.
> 
> My present query doesn't  works and is like this
> 
> Select months_between(('select max(h_date ) from query where
> email="hawks(at)vsnl(dot)com"),(select sysdate from dual)) from query
> 
> What is the SQL query that can acheive the same effect.
> With Best Regards
> SanjayArora
> 
> 
> 


In response to

  • at 2000-11-30 10:51:21 from Manish Vig

pgsql-hackers by date

Next:From: Don BaccusDate: 2000-11-30 14:55:21
Subject: Re: Please advise features in 7.1 (SUMMARY)
Previous:From: mlwDate: 2000-11-30 13:37:42
Subject: Re: SQL 'in' vs join.

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