i upload.jpg

This is the similar excel i use to store its value in the database. I need to insert the value of corresponding emp id whose weight-age is less than 100. I'm doing in joomla. Just i need a logic to insert the following values say,
expected_result.jpg

Please reply