That is a classic homework task - please provide code.
I'd go with the comment of
wilkus70. you're saving the attendance each time with a save-button to the DB.
So you should make an request to receive all entries which have the
empID
you are requesting it for.
so that would be
SELECT * FROM [tablename] WHERE empID IS LIKE '[empID]'
(please notice the ' to mask the value)