id Event No BrandId
1 10 B2
2 10 B8
3 11 B1
4 13 B9
5 13 B3
I want the above table as a resultant from a SQL View query.
For Instance Brand Id matched are B2 and B8 for Event 10, therefore 2 records are created for it.
Just want to know how can I create records with number of brands matched.