Here I go again with the NULL stuff.
I would like a MySQL query to return a NULL value for a specific record...when the record does not exist.
Say I have a table with kid's test scores for different seasons.
"SELECT PHASE, SCORE FROM DATATABLE WHERE STUDENTID=1234 AND (PHASE='FALL' OR PHASE='WINTER')"
If there is no record for this kid for FALL, the result will be something like:
+-----------+----------+
| PHASE | SCORE |
+-----------+----------+
|WINTER | 62 |
+-----------+----------+
1 rows in set (0.01 sec)
I believe there is MySQL syntax that would allow me to return the result that I want which would be this:
+-----------+----------+
| PHASE | SCORE |
+-----------+----------+
|FALL | NULL |
|WINTER | 62 |
+-----------+----------+
1 rows in set (0.01 sec)
😕