Re: A Question

From: Peter Eisentraut <e99re41(at)DoCS(dot)UU(dot)SE>
To: Sherril Mathew <m_sherril(at)hotmail(dot)com>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: A Question
Date: 2000-05-26 12:48:06
Message-ID: Pine.GSO.4.02A.10005261446270.12244-100000@Falk.DoCS.UU.SE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 26 May 2000, Sherril Mathew wrote:

> My one feild in the database is Date/time I want to find a range of
> records which exists between two dates in the same date field in the
> database

SELECT * FROM table WHERE datetime_field between '1999-03-15' and
'2000-10-23';

> Also tell me how to retreive all records from database where field which is
> date time is null I am working on ASP and backend as ms-ACCESS

SELECT * FROM table WHERE datetime_field is null;

--
Peter Eisentraut Sernanders väg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

  • A Question at 2000-05-26 10:53:56 from Sherril Mathew

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2000-05-26 13:02:53 Re: aliases break my query
Previous Message Sherril Mathew 2000-05-26 10:53:56 A Question