Hi all,
I'm trying to run a stored procedure:
BEGIN
SELECT YFR_Master_Fundraisers.FRName, YFR_Master_Fundraisers.FRActive
FROM YFR_Master
INNER JOIN YFR_Master_Fundraisers
ON YFR_Master.FundRaiser = YFR_Master_Fundraisers.FRNameCode
GROUP BY YFR_Master.FundRaiser
HAVING MAX(YFR_Master.CollectionDate) < DATE_SUB(CURDATE(),INTERVAL 2 MONTH)
AND YFR_Master_Fundraisers.FRActive = 1;
END
But I'm getting the following error:
Procedure execution failed
1312 - PROCEDURE db355379982.Deactivate can't return a result set in the given context
Does anyone know why I might be getting this?
I've never used stored procedures before.
Thanks