1917. Leetcodify Friends Recommendations
Description
+-------------+---------+
| Column Name | Type |
+-------------+---------+
| user\_id | int |
| song\_id | int |
| day | date |
+-------------+---------+
There is no primary key for this table. It may contain duplicates.
Each row of this table indicates that the user user\_id listened to the song song\_id on the day day.+---------------+---------+
| Column Name | Type |
+---------------+---------+
| user1\_id | int |
| user2\_id | int |
+---------------+---------+
(user1\_id, user2\_id) is the primary key for this table.
Each row of this table indicates that the users user1\_id and user2\_id are friends.
Note that user1\_id < user2\_id.ac
Last updated