🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2842

SQL question

#2842
From: Richard
Date: Fri, 07 Mar 2003 22:59
13 lines
1272 bytes
Hi,
I've got a database where a new record with a timestamp is added every
minute.
I'd like to query a group of records where the timestamp is in intervals of
10min.

DatePart("m\in",(timestamp)) mod 10 = 0

but I'm having trouble getting it working
I'm sure it's possible I'm just not quite sure what syntax to use

Thanks
Richard.
Technical Details
Message-ID: <3e69160a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,827b7bbae09c5d59,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-03-07 14:04:05 PST
Reply-To: "Richard" <rhanson@scadalink.com>
From: "Richard" <rhanson@scadalink.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: SQL question
Date: Fri, 7 Mar 2003 14:59:23 -0800
Lines: 15
Organization: Bentek Systems
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.64.16.243
Message-ID: <3e69160a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1047074314 24.64.16.243 (7 Mar 2003 13:58:34 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail