Been searching Google, searching this site, but can't seem to find an answer: How do I show only rows that have values for all three non-required fileds empty?
Example: I have a form that users fill out, and the fields "title" "author" and "year" are optional. Many records are missing one or two of these, but only certain ones are missing all three. I want to show the data in a table but exclude any instance where ALL THREE are blank, because that configuration classifies the row of data as a different set which I'm displaying on a different page.
I have tried
SELECT FROM table WHERE title !='' AND author !='' AND year !='' ";
But this does not work, I think for obvious reasons. I have tried many, many forms of this but everything I do either shows nothing or excludes any row where any one of the three items is blank.
Can someone boot me into the right direction?
Many thanks -- Bob