Question: how to calculate percentage in mysql query?
Answer: To calculate percentage of column in MySQL, you can simply cross join the sum() of sale column with the original table. If you want to add a where clause to filter your data, you need to place it after the CROSS JOIN, as shown below.