Re:

Поиск
Список
Период
Сортировка
От Michael Fork
Тема Re:
Дата
Msg-id Pine.BSI.4.21.0011300833020.4204-100000@glass.toledolink.com
обсуждение исходный текст
Ответ на  (Manish Vig <sk@pobox.com>)
Список pgsql-hackers
try this

SELECT age(max(h_date), now()) FROM table WHERE email='hawks@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@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 по дате отправления:

Предыдущее
От: mlw
Дата:
Сообщение: Re: SQL 'in' vs join.
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: SQL 'in' vs join.