- Mailing list pgsql-hackers

From Manish Vig
Subject
Date
Msg-id 200011300517.KAA02177@tcs.com
Whole thread Raw
Responses Re:  (Michael Fork <mfork@toledolink.com>)
List pgsql-hackers
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@vsnl.com"),(select sysdate from dual)) from query

What is the SQL query that can acheive the same effect.
With Best Regards
SanjayArora





pgsql-hackers by date:

Previous
From: Andrew Snow
Date:
Subject: Re: Please advise features in 7.1 (SUMMARY)
Next
From: mlw
Date:
Subject: Odd select behavior -- statistics, redux (7.0.x and devel)