Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time attendance table for time-log
Message
De
12/05/2009 08:55:28
Neil Mc Donald
Cencom Systems P/L
The Sun, Australie
 
 
À
11/05/2009 23:40:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01399324
Message ID:
01399359
Vues:
90
Hi,

To find First Swipetime
SELECT empid, MIN(swipetime) as Time1 FROM times ;
GROUP BY empid ;
INTO CURSOR curStartTimes nofilter

select Your_Other_Table
append from curStartTimes
To find last swipetime
SELECT empid, max(swipetime) as Time4 FROM times ;
GROUP BY empid ;
INTO CURSOR curFinishTimes nofilter

select Your_Other_Table
append from curFinishTimes
>I have a table with userid, swipedate, swipetime.. this is a database for our door access.. which records all the door out and in of our employees.. this will also be the daily time record for our time attendance..
>
>I'd like to select from this table:
>
>1. The employee's first swipe as her time-in in the morning..
>2. The employee's last swipe as her time-out in the afternoon..
>3. Also, the employee's swipe in-out after 12 noon as his time-out-in during lunch break..
>
>I'd like to save this into another table.. with fields userid, swipedate, time1, time2, time3, time4.. to record her attendance for the day..
>
>How can I achieve this?
Regards N Mc Donald
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform