Please read the first article in my signature on how to post questions. 😉
It will give you more info on how to post table definitions, sample data etc.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP