pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Comparing Dates to Current Time
4+ messages / 3 participants
[nested] [flat]

* Comparing Dates to Current Time
@ 1999-03-24 18:49 Jenny DiBartolomeo <jdibartolomeo@agency.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Jenny DiBartolomeo @ 1999-03-24 18:49 UTC (permalink / raw)
  To: pgsql-sql

OK... this is probably a trivial one.  In an Oracle query, I might do the
following select statement:

   SELECT title

     FROM articles

    WHERE expires > SYSDATE

How would I do the same thing in Postgres if the column "expires" is of the
data type "DATE"?  I've tried everything and read the man pages and can't
seem to get it working!  Any help would be VERY APPRECIATED!!!

Thanks sooooo much for any help you can give me!!!!  Please respond via
email to jdibartolomeo@agency.com.

-Jenny

------------------------------
Jennifer DiBartolomeo
jdibartolomeo@agency.com
------------------------------



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Comparing Dates to Current Time
@ 1999-03-24 19:08 Jenny DiBartolomeo <jdibartolomeo@agency.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Jenny DiBartolomeo @ 1999-03-24 19:08 UTC (permalink / raw)
  To: pgsql-sql

OK... this is probably a trivial one.  In an Oracle query, I might do the
following select statement:

   SELECT title

     FROM articles

    WHERE expires > SYSDATE

How would I do the same thing in Postgres if the column "expires" is of the
data type "DATE"?  I've tried everything and read the man pages and can't
seem to get it working!  Any help would be VERY APPRECIATED!!!

Thanks sooooo much for any help you can give me!!!!  Please respond via
email to jdibartolomeo@agency.com.

-Jenny

------------------------------
Jennifer DiBartolomeo
jdibartolomeo@agency.com
------------------------------



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* RE: [SQL] Comparing Dates to Current Time
@ 1999-03-24 21:12 Jackson, DeJuan <djackson@cpsgroup.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Jackson, DeJuan @ 1999-03-24 21:12 UTC (permalink / raw)
  To: Jenny DiBartolomeo <jdibartolomeo@agency.com>; pgsql-sql

try:
 SELECT title
   FROM articles
  WHERE expires > now()::datetime::date
	-DEJ

> -----Original Message-----
> From: Jenny DiBartolomeo [mailto:jdibartolomeo@agency.com]
> Sent: Wednesday, March 24, 1999 1:09 PM
> To: pgsql-sql@postgreSQL.org
> Subject: [SQL] Comparing Dates to Current Time
> 
> 
> OK... this is probably a trivial one.  In an Oracle query, I 
> might do the
> following select statement:
> 
>    SELECT title
> 
>      FROM articles
> 
>     WHERE expires > SYSDATE
> 
> How would I do the same thing in Postgres if the column 
> "expires" is of the
> data type "DATE"?  I've tried everything and read the man 
> pages and can't
> seem to get it working!  Any help would be VERY APPRECIATED!!!
> 
> Thanks sooooo much for any help you can give me!!!!  Please 
> respond via
> email to jdibartolomeo@agency.com.
> 
> -Jenny
> 
> ------------------------------
> Jennifer DiBartolomeo
> jdibartolomeo@agency.com
> ------------------------------
> 



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* RE: [SQL] Comparing Dates to Current Time
@ 1999-03-24 21:18 Michael Davis <michael.davis@prevuenet.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Michael Davis @ 1999-03-24 21:18 UTC (permalink / raw)
  To: pgsql-sql

Try select title from articles where expires > now()::date;

	-----Original Message-----
	From:	Jenny DiBartolomeo [SMTP:jdibartolomeo@agency.com]
	Sent:	Wednesday, March 24, 1999 12:09 PM
	To:	pgsql-sql@postgreSQL.org
	Subject:	[SQL] Comparing Dates to Current Time

	OK... this is probably a trivial one.  In an Oracle query, I might
do the
	following select statement:

	   SELECT title

	     FROM articles

	    WHERE expires > SYSDATE

	How would I do the same thing in Postgres if the column "expires" is
of the
	data type "DATE"?  I've tried everything and read the man pages and
can't
	seem to get it working!  Any help would be VERY APPRECIATED!!!

	Thanks sooooo much for any help you can give me!!!!  Please respond
via
	email to jdibartolomeo@agency.com.

	-Jenny

	------------------------------
	Jennifer DiBartolomeo
	jdibartolomeo@agency.com
	------------------------------



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~1999-03-24 21:18 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-03-24 18:49 Comparing Dates to Current Time Jenny DiBartolomeo <jdibartolomeo@agency.com>
1999-03-24 19:08 Comparing Dates to Current Time Jenny DiBartolomeo <jdibartolomeo@agency.com>
1999-03-24 21:12 RE: [SQL] Comparing Dates to Current Time Jackson, DeJuan <djackson@cpsgroup.com>
1999-03-24 21:18 RE: [SQL] Comparing Dates to Current Time Michael Davis <michael.davis@prevuenet.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox