Article View: bit.databases.mssql-l
Article #239Date/Time Problem
From: Halidon
Date: Tue, 28 Sep 1999 00:00
Date: Tue, 28 Sep 1999 00:00
20 lines
1106 bytes
1106 bytes
Hi All I am writing a sql query to extract a bunch of info from a SQL7 server. The problem I am having is that I need to match the times between 2 tables as a where condition, but the times are always 3 Minutes 46 seconds different. ie something like select whatever from tablea A, Tableb B where a.time - b. time = 3.46 The problem with this is that the time field is expressed as date/time as follows : '8/29/99 10:53:29 AM' in both tables, so a.time-b.time = '12/31/99 11:56:54pm' What the Hell am I doing wrong Thanks for the help in advance David
Technical Details
Message-ID:
<37f0f8a4.81213528@news.ftech.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6611,912b8ac3579b1f5c,start X-Google-Attributes: gidf6611,public From: halidon@rocketmail.com (Halidon) Subject: Date/Time Problem Date: 1999/09/28 Message-ID: <37f0f8a4.81213528@news.ftech.net> X-Deja-AN: 530365143 X-Complaints-To: abuse@ftech.net X-Trace: ayers.ftech.net 938539101 31926 212.32.21.8 (28 Sep 1999 17:18:21 GMT) Organization: Frontier Internet Services Limited NNTP-Posting-Date: 28 Sep 1999 17:18:21 GMT Newsgroups: bit.databases.mssql-l