how to use case with condition inside a function in mysql?
DELIMITER $$ USE `db_sp`$$ DROP FUNCTION IF EXISTS `bil`$$ CREATE DEFINER=`root`@`localhost` FUNCTION `bil`(num INT) RETURNS VARCHAR(7) CHARSET latin1 BEGIN DECLARE result VARCHAR(7); CASE num WHEN num > 0 THEN SET result = "Positive"; WHEN num < 0 THEN SET result…