Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by postgresql.org (8.11.3/8.11.4) with SMTP id f7EK3aP97168 for ; Tue, 14 Aug 2001 16:03:36 -0400 (EDT) (envelope-from janwieck@yahoo.com) Received: from jupiter.us.greatbridge.com (65.196.69.55) by smtp.mail.vip.sc5.yahoo.com with SMTP; 14 Aug 2001 20:03:34 -0000 X-Apparently-From: Received: (from wieck@localhost) by jupiter.us.greatbridge.com (8.11.2/8.11.2) id f7EKDDD18907; Tue, 14 Aug 2001 16:13:13 -0400 From: Jan Wieck Message-Id: <200108142013.f7EKDDD18907@jupiter.us.greatbridge.com> Subject: Re: Date: the day before yesterday. In-Reply-To: <9l19vh$9ku$1@cronkite.temple.edu> from Jason at "Aug 10, 2001 02:44:23 pm" To: Jason Date: Tue, 14 Aug 2001 16:13:13 -0400 (EDT) CC: pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200108/194 X-Sequence-Number: 4425 Jason wrote: > I am trying to retrieve records generated in the passed two days and > encountered difficulties in dealing with the date in Oracle. > Here is the query I try to form: > > select * from Table where InputDate>=[the day before yesterday] > > I tried "sysdate-2", didn't work. > Any suggestions? Try harder. > Thanks! You're welcome. Jan PS: What about ('now'::date - 2) ? -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com # _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com