Hi;
Not sure if this is possible. Is there a statement that will fill an "empty cell" in the results of a MySQL query with alternative text? I know how to do this with if...else type statements in php code, but I'm trying to make my code more efficient by letting the MySQL query do more of the work.
something along the lines of ....
SELECT STUDENT, ITEM, IF(RESPONSE, ELSE 'NORESPONSE') AS REPONSESTRING FROM TESTDATA
so that the result would look like:
STUDENT, ITEM, RESPONSESTRING
KID1, 12, Columbus
KID2, 12, NORESPONSE
KID3, 12, Magellan
KID4, 12, Columbus
I know the example query above is not correct....just trying to get the concept across...
can't seem to find a clear reference to this in the online MySQL manual.
Thanks.