Answer the question
In order to leave comments, you need to log in
How to cross join 2 columns of the same field in 1 table?
There is a table of correspondence of friends
--------------------------------------
idUser | IdfriendUser | dateadd |
--------------------------------------
1 | 2 | date |
2 | 3 | date |
--------------------------------------
how to get a table that duplicates a friend's field in a user field and a field user in friend field
--------------------------------------
idUser | IdfriendUser | dateadd |
--------------------------------------
1 | 2 | date |
2 | 1 | date |
2 | 3 | date |
3 | 2 | date |
--------------------------------------
and is it even worth doing it this way?
Answer the question
In order to leave comments, you need to log in
Whether or not you need to decide. In principle, it can be convenient for various associations.
You can hang on the table triggers for adding and deleting records that will add or delete a mirror record.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question