I seem to have the simplest problem but can\'t seem to get it right. I have a SQL table which looks something like this:
Code | Period | PeriodVersion | S