I have a MySQL table with computerid, userid, and few other columns. Now I want a query which would return all the recrods where computerid value is shared by more than one user. Find below sample data:
computerid userid 100 5 105 10 110 6 100 7 101 11 100 5 105 10 101 11
For above set of data mysql query should return below results because in this case computerid is shared by two user ids.
computerid userid 100 5 100 7