I am having trouble with a slowly changing dimension type II selection. I am looking to select the actual length of an employees skill certification so that i can display start and end of his certification in a report. How would you go about doing that? Below i have included an image of the records for an employee ‘80844’ and below the records the expected result.
I am using Microsoft SQL Server 2008 R2.

Thank you for interesting question. It is well-known ‘gaps and islands’ problem. You can read more about it there.
For your case solution could look like this: