I have table t1 sql records
user_id tags
1 <tag1><tag2>
1 <tag1><tag3>
2 <tag2><tag3>
I want to divide this records into multiple records and do distinct on it. I want to know how to divide the records based on tags <> into another table t2
I need ouput like this in table t2
user_id tags
1 <tag1>
1 <tag2>
1 <tag1>
1 <tag3>
2 <tag2>
2 <tag3>
Can u guys give me some sql query to do??