Get Common Rows Within The Same Table
问题 I've had a bit of a search, but didn't find anything quite like what I'm trying to achieve. Basically, I'm trying to find a similarity between two users' voting habits. I have a table storing each individual vote made, which stores: voteID itemID (the item the vote is attached to) userID (the user who voted) direction (whether the user voted the post up, or down) I'm aiming to calculate the similarity between, say, users A and B, by finding out two things: The number of votes they have in