(Fwd) Hi and some advice on Dates - Mailing list pgsql-sql

From Andrew Mather (Powered By Linux)
Subject (Fwd) Hi and some advice on Dates
Date
Msg-id 104E3CB13D06@woody.agvic.gov.au
Whole thread Raw
Responses Re: [SQL] (Fwd) Hi and some advice on Dates  (Ulf Mehlig <umehlig@uni-bremen.de>)
Re: [NOVICE] (Fwd) Hi and some advice on Dates  ("W.H. Dekker" <wybo@servaly.hobby.nl>)
List pgsql-sql
G'day All,

I am pretty new to postgres and am using it as a backend for DB's
accessed via the web and Perl DBI.  All this works really well and I
have a few db's up and running on our Intranet at work, where they're
quite heavily used.

My current project requires me to do some date calculations and I'm
stumped !

Could anyone help with the following: (I have not fixed data type yet,
I will be guided by any info I can get)

How to query a table and look for any records where
the value in a date field is greater than (say) 10 days ago

Calculate the difference between two times on the same day. (I have
experimented with age() and it sort of does wht I want..is there any
other way ?)

I've searched the archives without success and the doc's don't give
much away as far as this type of thing goes.

Thanks in anticipation.
Andrew
--------------------------------------------------------
Andrew Mather:  System Administrator, VIAS
mathera@woody.agvic.gov.au / amsm@deakin.edu.au
http://www.deakin.edu.au/~amsm/index.html
Ph: 03 92174342 (BH), Mob 0413 009 761
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Linux: it's not just for breakfast anymore.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-

pgsql-sql by date:

Previous
From: "Andrew Mather (Powered By Linux)"
Date:
Subject: SQL help
Next
From: Ulf Mehlig
Date:
Subject: Re: [SQL] (Fwd) Hi and some advice on Dates