Query:
SELECT * FROM table
WHERE fieldA LIKE '%%'
AND fieldB LIKE '%%'
AND fieldC LIKE '%%'
This returns only records that have all fields completed. My thought would be that it should return all records in the table.
Does the '%%' actually represent that a value is needed?
UPDATE1:
Thanks to some good questions the solution was found:
Query should be like:
SELECT * FROM table
WHERE if(fieldA IS NOT NULL,fieldA LIKE '%%',fieldA IS NULL)
...