Hello i am trying to count tracking numbers with non null non empty string in mysql
i see that count won't include null values. But is there a way to make it not include '' empty strings as well?
Thank you.
-Brendon
Try this, it will skip both NULL (which count doesn't count anyway) as well as empty string:
SELECT COUNT(*)
FROM TABLE
WHERE column_name != '' and column_name IS NOT NULL
* you should see how many rows return, this is the COUNT() result.' ' but apparently, you don't.