On Apr 20, 3:46 pm, "Dave" <d... RemoveThis @nospam.co.uk> wrote:
> I have a table of score which are 1's and 0's.
>
> How would I go about writing a query to get the percentage of 1's against
> the toal number of records?
>
> Many thanks
SELECT (SUM( score ) / COUNT( score )) *100 percentage FROM `scores`