Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL SELECT fails with DateTime Joins
Message
 
To
21/11/2000 16:03:58
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00444351
Message ID:
00444419
Views:
8
John,

Datetime data is stored to milliseconds but we only have access to the second. This causes the problem you are seeing. The datetimes you are trying to match up are not exactly the same values in the table. I would split the join up so that the datetime stuff is in the where clause where it can be a range of;
... WHERE File1.DateTime >= File2.dateTime ;
      AND File1.DateTime <= File2.DateTime+1 ...
Previous
Reply
Map
View

Click here to load this message in the networking platform