Yes, that makes sense. My example shows the insert into the table simply to create sample data. Ignore that part and focus on the output. What I want to know is, based on the sample data in my example, how does the output shown differ from what you want to see?