I have a table which currently contain data like Videoid,Tags,and clicks.
As table Tags contain multiple tags, this causing problem where a same video will show a top clicked video on each tag section which it contain.
What it should be,is how each tag have it's own clicks.
At the moment solutions which i have but dont find it suitable are following:
1.To put a single tag instead list of tags, this is problem as then i would have to copy same data for every tag
2.To create another table called Clicks, and everytime when it is clicked on video in new tag, copy all relevant data from first table and then call UNION query.
Problem with this how we also have duplicates(tho alteast not big as in first case, as new data is inserted only when click occur) and
second is how same videos could show, as first it will show one which contain click stats and single tag, and then same video which dont contain click stats from first table.
Closest to solution was using CROSS JOIN query, but problem with that query is how is simply pulling all data id by id, and it need to be linked,
for example both tables have Videoid table which is same, and then order by Clicks which is in second table.