Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scheduling work hours per employer
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01032268
Message ID:
01032285
Views:
21
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform