You can show the null values which represent the concept of missing or inapplicable information, with other values for better data representation.
Suppose we have a table as below:
| Name | Country |
| John | India |
| Jane | Australia |
| Tim | [NULL] |
So if you query from the database the null result will show the blank result.
SELECT name,
IF(country IS NULL,"No Country",country) country
FROM users; | Name | Country |
| John | India |
| Jane | Australia |
| Tim | No Country |
MySQL also handles the null values directly using IFNULL function.
SELECT name,
IFNULL(country,"No Country") country
FROM users; The coronavirus outbreak has drastically changed the way we live our lives. Yes, that's absolutely…
Sales and marketing teams help attract, convert, and retain customers to ensure an organization’s long-term…
Are you an owner of a small business who’s trying to come up with ways…
Introduction When patients bring me their lab reports, the confusion is almost always the same.…
Are you excited about remodeling your house after a long time? Perhaps if you're planning…
The practice of yoga teaches us to be present, patient and mindful of our decisions.…