Not sure what the purpose of your topic is here? Could you explain? Are you simply sharing us your data and your final result and want to share how you achieved that? If so, you should include the SQL and explain it; that'll really help other.
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.