Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 3 of 3 total |
SQL Question with TimeStamp Fileds |
Tue, Apr 24 2007 1:44 PM | Permanent Link |
Bryan | Hello,
Using DBISAM 4.25 build 4, Win XP Pro, D2007... I have the following SQL statement but I get "7/12/2006' is not a valid date'. error... Here is the sql statement... Select AVG(Lat) from HModelSort where (Name = 'AP14' or Name = 'AVNI' or Name = 'VANO') AND (BaseTime = '7/12/2006 6:00:00 AM') AND (ForecastTime = '7/12/2006 9:00:00 AM') My table has the following structure: Name : string BaseTime : TimeStamp ForecastTime : TimeStamp Any suggestions on what might be wrong? Thanks! Bryan |
Tue, Apr 24 2007 3:34 PM | Permanent Link |
"Donat Hebert \(Worldsoft\)" | Hi Bryan,
Dates have to be in ansi format ie ccyy-mm-dd. Donat. "Bryan" <bryan@extremewx.com> wrote in message news:57CE3D12-C66E-4479-974F-A184A72B5D24@news.elevatesoft.com... > Hello, > Using DBISAM 4.25 build 4, Win XP Pro, D2007... > > I have the following SQL statement but I get "7/12/2006' is not a valid > date'. error... > > Here is the sql statement... > > Select AVG(Lat) from HModelSort where (Name = 'AP14' or Name = 'AVNI' or > Name = 'VANO') AND > (BaseTime = '7/12/2006 6:00:00 AM') AND (ForecastTime = '7/12/2006 9:00:00 > AM') > > My table has the following structure: > Name : string > BaseTime : TimeStamp > ForecastTime : TimeStamp > > Any suggestions on what might be wrong? > Thanks! > Bryan > |
Tue, Apr 24 2007 3:49 PM | Permanent Link |
Bryan | "Donat Hebert \(Worldsoft\)" <donat.hebert@worldsoft.ca> wrote:
Hi Bryan, Dates have to be in ansi format ie ccyy-mm-dd. Donat. Thanks! That did the trick. Bryan |
This web page was last updated on Friday, April 19, 2024 at 07:09 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |