i know this Q has a lot of threads, but the answers's a little bit different from what i want, i dont know much 'bout sql so dont know how to change their query as i want
i have a table like this, user will vote and DB record product with point
id | name | point
1 | foo | 8
2 | bar | 6
2 | bar | 9
2 | bar | 9
1 | foo | 5
now i want a query that show a result like this
id | name | AVG point | votes | rank
1 | foo | 7.5 | 2 | 2
2 | bar | 8 | 3 | 1
AVG point col is average the point each id
vote is total record each id
rank base on number of vote
point column i gonna use later, that why rank column not base on it
thanks in advance ^へ^