S
Siegfried Heintze
I have a table implementing the time sheets. Each row contains a
worker's name (text, primary key), start time and stop time
(date/time). This is updated daily. Presently I can use a simple query
to display this but it keeps no history.
How can I modify my table to maintain a one month history? Perhaps I
could add the stop time to the primary key?
If I did that,
(1) how could I write an SQL SELECT statement to print only the most
recent start and stop times for each worker?
(2) how could I write an SQL SELECT statement to print only the second most
recent start and stop times for each worker?
worker's name (text, primary key), start time and stop time
(date/time). This is updated daily. Presently I can use a simple query
to display this but it keeps no history.
How can I modify my table to maintain a one month history? Perhaps I
could add the stop time to the primary key?
If I did that,
(1) how could I write an SQL SELECT statement to print only the most
recent start and stop times for each worker?
(2) how could I write an SQL SELECT statement to print only the second most
recent start and stop times for each worker?