Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scheduling work hours per employer
Message
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 9
Database:
Visual FoxPro
Divers
Thread ID:
01032268
Message ID:
01032285
Vues:
22
Something like this (you can make this select as View or CA).
SELECT Employee.Name,;
       IIF(DOW(Date,2)==1,Work_StartTime,0) AS Mo,;
       IIF(DOW(Date,2)==2,Work_StartTime,0) AS Tu,;
....
       FROM Plan;
       LEFT JOIN Employee ON Plan.EmplId == Employee.Id;
       WHERE BETWEEN(Plan.Date, startDate,startDate+7);
INTO CURSOR gridSource
For Reporting you may need different SELECT.

(not tested)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform