Fairly new to SQL and it would be great to have a slicker take on this problem.
Here\'s an example table: