Check out example codes for "mariadb cast null to 0". It will help you in understanding the concepts better.

Code Example 1

SELECT COALESCE(col, 0) FROM `table`;

Learn ReactJs, React Native from akashmittal.com