You should take a look at your SQL.
You might want to join your employee table
and your emp_name table. Also you could avoid
looping over @days by changing your where
clause to have something like this in it AND wkday in ( 'Mon', 'Tue', 'Wed', 'Thu', 'Fri')