Hi everyone I am very new to MySQL server and trying to complete an assignment for class. I cant seem to find the solution. Any help is much appreciated. Here is my code and here is the error statement. Thank you in advance.
ERROR Statement:
ERROR 1054 (42S22) at line 1: Unknown column 'Total_Number_Forced_Outage_Events' in 'field list'
SELECT
SUM(CASE
WHEN Reason = 'Forced' THEN 1 ELSE 0 END) AS Total_Number_Forced_Outage_Event,
Count(*)AS Total_Number_Outage_Events,
Total_Number_Forced_Outage_Events / Total_Number_Outage_Events AS Forced_Outage_Percentage,
YEAR(Start_Time) AS Year
FROM AEMR
WHERE Status = 'Approved'
GROUP BY Year
ORDER BY Year
;