I have a table called Percentages with a Column called 5StarResults, I would like to populate this with the results of a stored procedure names 5star.
When I use 'Call 5star' it returns just a percentage, I would like this percentage inserted into the Percentages table.
Please can you assist, I have tried to edit the procedure to include an Insert but it always returns saying 0 rows inserted.
Thank you
edit,
Stored Procedure is as follows
BEGIN
declare Rating5Total int default 5;
declare Rating5Win int default 5;
declare 5StarPerformance decimal;
set Rating5Total = (select COUNT(Ratings) from vHighPerformance where Ratings = 7);
set Rating5Win = (select COUNT(Results) from vHighPerformance where Ratings = 7 and Results = 1);
set 5StarPerformance = Rating5Win*100.0/Rating5Total;
Select 5StarPerformance;
END