Use the SQRT() function. If the number is negative, NULL will be returned
SQRT()
NULL
SELECT SQRT(16); -> 4 SELECT SQRT(-3); -> NULL