Hi everyone!
I've been looking for a solution, but i just can't find it anywhere...
Ok, so the problem is:
i have a database which looks something like this:
user_id product_id score
14 . 235 . 79
23 . 235 . 32
53 . 665 . 21
14 . 235 . 90
5 . 675 . 45
What i need to do, is to compare the score, lets say for product_id 235:
user_id 14 gave it 79
user_id 23 gave it 32
user_id 14 gave it 90 points.
I would like to get the difference between votes for every user:
user14 = 79, user23 = 32, so 79 - 32 = 47.
I would really appreciate some help with this, since i have to return my project before the end of the year.
Thanks