Ver originalCREATE PROCEDURE loteria () BEGIN DECLARE num INT;SET num = (SELECT cuadro , COUNT(*) as c FROM principal GROUP BY cuadro ORDER BY c asc LIMIT 1);IF (num < 100) THEN SELECT num1, num2 FROM principal WHERE cuadro = num;ELSE SELECT 'Todos los numerose estan llenos.';END IF;END