Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for latest Date
Message
De
10/03/2005 15:34:59
 
 
À
10/03/2005 14:59:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00994588
Message ID:
00994607
Vues:
17
Not tested, but how about something like this:
SELECT *;
   FROM MyTable;
   WHERE ABS (MyDate - {^ 2005/03/10}) =;
      (SELECT MIN (ABS (MyDate - {^ 2005/03/10})) FROM MyTable)
HTH

>I'm trying to write a query to return records from a table that are closest to a certain date. I'm not sure what the syntax should look like in my SQL select statement.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform