Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get Data with Minimum Date
Message
De
26/08/2008 13:57:52
Steven Dyke
Safran Seats USA
Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Get Data with Minimum Date
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01341907
Message ID:
01341907
Vues:
50
I know I have asked this before but the SPT statement was not as complicated. I need the gentime to be the minimum when two or more records are on the same date.

String sql = "SELECT gentime, link1, gatetype FROM history" +;
" Join cardholder On history.link3 = cardholder.recordid" +;
" Join gatenames On history.link1 = gatenames.gatenumb" +;
" WHERE cardholder.note1 = '56230'" +;
" And gentime >= '" + gateactivityarray[i][0] +;
"' And gentime < '" + tempDate + "' Order By gentime"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform