wrightee
February 24th, 2008, 06:34 PM
Hello.. sorry, remedial question from brain malfunction.
I have tbl.transactions with columns id, buyer, product. I need to find products that have been sold to a distinct buyer more than once. So if my data looked like this, my query should return 5 as that one's been purchased by buyer #1 more than once.
(id, buyer, product)
1 1 5
2 1 5
3 2 5
4 2 6
I'd be most grateful if someone can remind me how to walk. Thank you!
I have tbl.transactions with columns id, buyer, product. I need to find products that have been sold to a distinct buyer more than once. So if my data looked like this, my query should return 5 as that one's been purchased by buyer #1 more than once.
(id, buyer, product)
1 1 5
2 1 5
3 2 5
4 2 6
I'd be most grateful if someone can remind me how to walk. Thank you!