I am creating a website for digital camera and want to create a top5 table of digital camera manufacturers which is worked out by the rating given to each manufacturers model.
I have a manufacturer table and a model table that are joined using manufacturer_id.
Each model has a rating out of 100.
To get this to work I will need to count how many models each manufacturers has and divide this by the total of each model_rating added together. This will work out the average rating
I will then need to go on to order each manufacturer by the highest average rating.
Can anybody help me??
😕