Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL SELECT fails with DateTime Joins
Message
 
À
21/11/2000 16:03:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00444351
Message ID:
00444419
Vues:
14
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 ...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform